@@ -44,7 +44,6 @@ def get_default_action():
4444
4545
4646class PinPointForm (forms .Form ):
47-
4847 action = forms .ModelChoiceField (
4948 queryset = Action .objects .all (),
5049 label = "Action" ,
@@ -150,23 +149,23 @@ def acteur_pinpoint(
150149
151150 def button (self , ** kwargs ):
152151 context = {"href" : "google.fr" , "text" : "test" }
153- return render_to_string ("components/button.html" , context )
152+ return render_to_string ("ui/ components/button.html" , context )
154153
155154 def code (self , ** kwargs ):
156155 context = {
157156 "script" : '<script src="https://quefairedemesdechets.ademe.local/iframe.js"></script>' ,
158157 }
159- return render_to_string ("components/code/code.html" , context )
158+ return render_to_string ("ui/ components/code/code.html" , context )
160159
161160 def logo (self , ** kwargs ):
162- return render_to_string ("components/logo/header.html" )
161+ return render_to_string ("ui/ components/logo/header.html" )
163162
164163 def logo_homepage (self , ** kwargs ):
165- return render_to_string ("components/logo/homepage.html" )
164+ return render_to_string ("ui/ components/logo/homepage.html" )
166165
167166 def produit_legacy_heading (self , ** kwargs ):
168167 context = {"title" : "Coucou !" }
169- return render_to_string ("components/produit/legacy_heading.html" , context )
168+ return render_to_string ("ui/ components/produit/legacy_heading.html" , context )
170169
171170 @register_form_class (ProduitHeadingForm )
172171 def produit_heading (self , synonyme = None , pronom = "mon" , ** kwargs ):
@@ -177,7 +176,7 @@ def produit_heading(self, synonyme=None, pronom="mon", **kwargs):
177176
178177 context .update (pronom = pronom )
179178
180- return render_to_string ("components/produit/heading.html" , context )
179+ return render_to_string ("ui/ components/produit/heading.html" , context )
181180
182181 @register_form_class (ProduitHeadingForm )
183182 def produit_heading_family (self , synonyme = None , pronom = "mon" , ** kwargs ):
@@ -188,7 +187,7 @@ def produit_heading_family(self, synonyme=None, pronom="mon", **kwargs):
188187
189188 context .update (pronom = pronom )
190189
191- return render_to_string ("components/produit/heading_family.html" , context )
190+ return render_to_string ("ui/ components/produit/heading_family.html" , context )
192191
193192
194193class ModalsPreview (LookbookPreview ):
@@ -229,11 +228,11 @@ def home(self, **kwargs):
229228 },
230229 "ASSISTANT" : {"faites_decouvrir_ce_site" : "Faites découvrir ce site !" },
231230 }
232- return render_to_string ("pages/home.html" , context )
231+ return render_to_string ("ui/ pages/home.html" , context )
233232
234233 def produit (self , ** kwargs ):
235234 context = {"object" : Synonyme .objects .first ()}
236- return render_to_string ("pages/produit.html" , context )
235+ return render_to_string ("ui/ pages/produit.html" , context )
237236
238237
239238class SnippetsPreview (LookbookPreview ):
@@ -244,21 +243,21 @@ def header(self, **kwargs):
244243 **Markdown syntax is supported in docstring**
245244 """
246245 context = {"request" : None }
247- return render_to_string ("components/header/header.html" , context )
246+ return render_to_string ("ui/ components/header/header.html" , context )
248247
249248 def footer (self , ** kwargs ):
250- return render_to_string ("components/footer/footer.html" )
249+ return render_to_string ("ui/ components/footer/footer.html" )
251250
252251 def suggestions (self , ** kwargs ):
253252 context = {
254253 "heading" : "Coucou" ,
255254 "suggestions" : [("coucou" , "google.fr" ), ("youpi" , "google.fr" )],
256255 }
257- return render_to_string ("components/suggestions/suggestions.html" , context )
256+ return render_to_string ("ui/ components/suggestions/suggestions.html" , context )
258257
259258 def share_and_embed (self , ** kwargs ):
260259 context = {"heading" : "Faites découvrir ce site" }
261- return render_to_string ("snippets/share_and_embed.html" , context )
260+ return render_to_string ("ui/ snippets/share_and_embed.html" , context )
262261
263262
264263class IframePreview (LookbookPreview ):
@@ -364,7 +363,7 @@ def P01_3_3(self, **kwargs):
364363 - [ ] Le contour de la recherche doit être en couleur #53918C
365364 """
366365 context = {"search_form" : SearchForm ()}
367- return render_to_string ("components/search/view.html" , context )
366+ return render_to_string ("ui/ components/search/view.html" , context )
368367
369368 def P01_10_2 (self , ** kwargs ):
370369 """
@@ -378,7 +377,7 @@ def P01_10_2(self, **kwargs):
378377 - [ ] Avec le CSS désactivé, le label rechercher du bouton s'affiche
379378 """
380379 context = {"search_form" : SearchForm ()}
381- return render_to_string ("components/search/view.html" , context )
380+ return render_to_string ("ui/ components/search/view.html" , context )
382381
383382 def P01_10_7 (self , ** kwargs ):
384383 """
@@ -394,7 +393,7 @@ def P01_10_7(self, **kwargs):
394393 - [ ] Le focus du champ de recherche affiche un contour bleu bien visible
395394 """
396395 context = {"search_form" : SearchForm ()}
397- return render_to_string ("components/search/view.html" , context )
396+ return render_to_string ("ui/ components/search/view.html" , context )
398397
399398 def P01_13_8 (self , ** kwargs ):
400399 """
@@ -414,10 +413,10 @@ def P01_13_8(self, **kwargs):
414413 {% load dsfr_tags %}
415414
416415 <p class="fr-h2">Logo en homepage</p>
417- {% include "components/logo/homepage.html" %}
416+ {% include "ui/ components/logo/homepage.html" %}
418417 <hr>
419418 <p class="fr-h2">Logo du header</p>
420- {% include "components/logo/header.html" %}
419+ {% include "ui/ components/logo/header.html" %}
421420 """ ,
422421 )
423422 return template .render (Context ({}))
0 commit comments