Skip to content

Commit a268257

Browse files
committed
Updates for edit page layout
1 parent 99b977b commit a268257

File tree

1 file changed

+71
-63
lines changed

1 file changed

+71
-63
lines changed

src/main/java/org/computate/frFR/java/EcrirePageClasse.java

Lines changed: 71 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -2633,7 +2633,6 @@ else if("LocalDate".equals(entiteNomSimple)) {
26332633
ecrirePageBoutonsRecherche(langueNom, i18nPage);
26342634
ecrirePageFormulaireRecherche(langueNom, i18nPage);
26352635
ecrirePageBoutonsPagination(langueNom, i18nPage);
2636-
26372636
ecrirePageRechercheJinja(langueNom, i18nPage);
26382637
//STUFF1
26392638
}
@@ -4382,6 +4381,7 @@ else if(classeApiMethode.contains(i18nPage.getString(I18n.var_PUTCopie)))
43824381
tl(0, "{{ htm", i18nPage.getString(I18n.var_Formulaire), "_", classeApiOperationIdMethode, "() }}");
43834382
}
43844383
}
4384+
tl(5, "<", composantsWebPrefixe, "divider></", composantsWebPrefixe, "divider>");
43854385

43864386
o = oAncien;
43874387
}
@@ -4394,7 +4394,33 @@ public void ecrirePageBarreLaterale(String langueNom, JsonObject i18nPage) throw
43944394
// pageContent //
43954395
/////////////////
43964396

4397-
tl(4, "<div class=\"htmBody", i18nPage.getString(I18n.var_BarreLaterale), "", classePageNomSimple, " \">");
4397+
tl(4, "<", composantsWebPrefixe, "details open>");
4398+
tl(5, "<div slot=\"summary\">", String.format(i18nPage.getString(I18n.str_Cartes_des), classeNomPluriel), "</div>");
4399+
4400+
/////////////////////////////////
4401+
// htmBodyGraphiqueEmplacement //
4402+
/////////////////////////////////
4403+
4404+
if(classeVarEmplacement != null) {
4405+
l();
4406+
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Graphique), i18nPage.getString(I18n.var_Emplacement), classePageNomSimple, " %}");
4407+
tl(0, "{% if ", varResultat, "Count > 0 %}");
4408+
tl(4, "<div id=\"htmBody", i18nPage.getString(I18n.var_Graphique), i18nPage.getString(I18n.var_Emplacement), classePageNomSimple, "\" class=\"htmBody", i18nPage.getString(I18n.var_Graphique), i18nPage.getString(I18n.var_Emplacement), " \"></div>");
4409+
tl(0, "{% endif %}");
4410+
tl(0, "{%- endblock htmBody", i18nPage.getString(I18n.var_Graphique), i18nPage.getString(I18n.var_Emplacement), classePageNomSimple, " %}");
4411+
}
4412+
4413+
//////////////////////
4414+
// htmBodyGraphique //
4415+
//////////////////////
4416+
4417+
l();
4418+
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Graphique), classePageNomSimple, " %}");
4419+
tl(4, "<div id=\"htmBody", i18nPage.getString(I18n.var_Graphique), classePageNomSimple, "\" class=\"htmBody", i18nPage.getString(I18n.var_Graphique), " \"></div>");
4420+
tl(0, "{%- endblock htmBody", i18nPage.getString(I18n.var_Graphique), classePageNomSimple, " %}");
4421+
4422+
tl(4, "</", composantsWebPrefixe, "details>");
4423+
tl(5, "<div class=\"htmBody", i18nPage.getString(I18n.var_BarreLaterale), "", classePageNomSimple, " \">");
43984424

43994425
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_BarreLaterale), "", classePageNomSimple, " %}");
44004426

@@ -5015,28 +5041,6 @@ public void ecrirePageBarreLaterale(String langueNom, JsonObject i18nPage) throw
50155041
tl(0, "{%- endblock htmBody", i18nPage.getString(I18n.var_BarreLaterale), "", classePageNomSimple, " %}");
50165042
tl(4, "</div>");
50175043

5018-
/////////////////////////////////
5019-
// htmBodyGraphiqueEmplacement //
5020-
/////////////////////////////////
5021-
5022-
if(classeVarEmplacement != null) {
5023-
l();
5024-
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Graphique), i18nPage.getString(I18n.var_Emplacement), classePageNomSimple, " %}");
5025-
tl(0, "{% if ", varResultat, "Count > 0 %}");
5026-
tl(4, "<div id=\"htmBody", i18nPage.getString(I18n.var_Graphique), i18nPage.getString(I18n.var_Emplacement), classePageNomSimple, "\" class=\"htmBody", i18nPage.getString(I18n.var_Graphique), i18nPage.getString(I18n.var_Emplacement), " \"></div>");
5027-
tl(0, "{% endif %}");
5028-
tl(0, "{%- endblock htmBody", i18nPage.getString(I18n.var_Graphique), i18nPage.getString(I18n.var_Emplacement), classePageNomSimple, " %}");
5029-
}
5030-
5031-
//////////////////////
5032-
// htmBodyGraphique //
5033-
//////////////////////
5034-
5035-
l();
5036-
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Graphique), classePageNomSimple, " %}");
5037-
tl(4, "<div id=\"htmBody", i18nPage.getString(I18n.var_Graphique), classePageNomSimple, "\" class=\"htmBody", i18nPage.getString(I18n.var_Graphique), " \"></div>");
5038-
tl(0, "{%- endblock htmBody", i18nPage.getString(I18n.var_Graphique), classePageNomSimple, " %}");
5039-
50405044
o = oAncien;
50415045
}
50425046

@@ -5237,7 +5241,7 @@ public void ecrirePageBoutonsPagination(String langueNom, JsonObject i18nPage) t
52375241
tl(8, "</", composantsWebPrefixe, "button>");
52385242
tl(7, "</", composantsWebPrefixe, "tooltip>");
52395243
tl(6, "</", composantsWebPrefixe, "button-group>");
5240-
tl(6, "<div>{{ pagination.", i18nPage.getString(I18n.var_debut), "Num }} – {{ pagination.", i18nPage.getString(I18n.var_fin), "Num }} ", i18nPage.getString(I18n.var_de), " {{ pagination.", i18nPage.getString(I18n.var_numTrouve), " }}</div>");
5244+
tl(6, "<div>{{ pagination.", i18nPage.getString(I18n.var_debut), "Num }} – {{ pagination.", i18nPage.getString(I18n.var_fin), "Num }} ", i18nPage.getString(I18n.var_de), " {{ pagination.", i18nPage.getString(I18n.var_numTrouve), " }} ", classeNomPluriel, "</div>");
52415245
tl(5, "</div>");
52425246

52435247
o = oAncien;
@@ -5278,20 +5282,32 @@ public void ecrirePageRechercheJinja(String langueNom, JsonObject i18nPage) thro
52785282
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Debut), classePageSuperNomSimple, " %}");
52795283
tl(0, "{{ super() }}");
52805284
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Debut), classePageNomSimple, " %}");
5285+
5286+
tl(0, "{% if ", varResultat, "Count > 0 %}");
5287+
t(5, "<h1>");
5288+
s("<a href=\"{{pageUri}}\">");
5289+
s(classeIcone);
5290+
s(" <span>", classeNomAdjectifPluriel, "</span>");
5291+
s("</a>");
5292+
l("</h1>");
5293+
tl(0, "{%- include ", classePageRechercheSuggereTemplate, " %}");
5294+
tl(0, "{% include ", classePageBoutonsRechercheTemplate, " %}");
5295+
tl(0, "{% include ", classePageFormulaireRechercheTemplate, " %}");
5296+
tl(0, "{% endif %}");
5297+
52815298
tl(0, "{%- endblock htmBody", i18nPage.getString(I18n.var_Debut), classePageNomSimple, " %}");
52825299
tl(0, "{%- endblock htmBody", i18nPage.getString(I18n.var_Debut), classePageSuperNomSimple, " %}");
52835300
l();
52845301
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Milieu), classePageSuperNomSimple, " %}");
52855302
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Milieu), classePageNomSimple, " %}");
52865303

5287-
tl(0, "{%- include ", classePageBarreLateraleTemplate, " %}");
5288-
tl(0, "{%- include ", classePageRechercheSuggereTemplate, " %}");
5289-
52905304
// htmBodyCount0 //
52915305
tl(0, "{% if ", varResultat, "Count == 0 %}");
52925306
ecrirePageRechercheAucun(langueNom, i18nPage);
52935307
tl(0, "{% else %}");
52945308

5309+
tl(0, "{%- include ", classePageBarreLateraleTemplate, " %}");
5310+
52955311
tl(5, "<form action=\"", classeApiUri, "\" id=\"", classeApiClasseNomSimple, "Form\" class=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Formulaire), " \" onsubmit=\"event.preventDefault(); return false; \">");
52965312
t(6, "<input");
52975313
s(" name=\"focusId\"");
@@ -5332,22 +5348,10 @@ public void ecrirePageRechercheJinja(String langueNom, JsonObject i18nPage) thro
53325348
// htmBodyTous //
53335349
/////////////////
53345350

5335-
t(5, "<h1>");
5336-
s("<a href=\"{{pageUri}}\">");
5337-
s(classeIcone);
5338-
s(" <span>", classeNomAdjectifPluriel, "</span>");
5339-
s("</a>");
5340-
l("</h1>");
5341-
5342-
// formulaires
5343-
5344-
tl(0, "{% include ", classePageBoutonsRechercheTemplate, " %}");
5345-
tl(0, "{% include ", classePageFormulaireRechercheTemplate, " %}");
5346-
tl(0, "{% include ", classePageBoutonsPaginationTemplate, " %}");
5347-
53485351
// tl(6, "<", composantsWebPrefixe, "divider></", composantsWebPrefixe, "divider>");
53495352
// tl(6, "{{ htm", i18nPage.getString(I18n.var_BoutonsPagination), classePageNomSimple, "() }}");
53505353

5354+
tl(0, "{% include ", classePageBoutonsPaginationTemplate, " %}");
53515355
tl(5, "<div class=\"card-like-thing background-color-surface-border\" id=\"site-results-grid\">");
53525356
tl(6, "<div>");
53535357
s(wTh);
@@ -5414,46 +5418,50 @@ public void ecrirePageEditionJinja(String langueNom, JsonObject i18nPage) throws
54145418
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Debut), classePageSuperNomSimple, " %}");
54155419
tl(2, "{{ super() }}");
54165420
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Debut), classePageNomSimple, " %}");
5421+
5422+
tl(0, "{% if ", varResultat, "Count > 0 %}");
5423+
5424+
tl(5, "<div class=\"", composantsWebPrefixe, "flank \">");
5425+
tl(6, "<", composantsWebPrefixe, "tooltip for=\"", i18nPage.getString(I18n.var_retourner_a_), classeNomSimple, "\">", i18nPage.getString(I18n.str_retourner_a_), classeTousNom, "</", composantsWebPrefixe, "tooltip>");
5426+
tl(6, "<", composantsWebPrefixe, "button id=\"", i18nPage.getString(I18n.var_retourner_a_), classeNomSimple, "\"", "wa-".equals(composantsWebPrefixe) ? " variant=\"brand\"" : " variant=\"primary\" outline", " href=\"{{ SITE_BASE_URL }}{{ pageUri }}\">");
5427+
tl(7, "<i class=\"{{ FONTAWESOME_STYLE }} fa-angle-left\"></i>");
5428+
tl(7, classeTousNom);
5429+
tl(6, "</", composantsWebPrefixe, "button>");
5430+
5431+
t(6, "<h1 class=\"", i18nPage.getString(I18n.var_Page), "_", classeVarTitre, "\">");
5432+
s(classeIcone);
5433+
s(" {{ ", varResultat, ".", classeVarTitre, " | e }}");
5434+
l("</h1>");
5435+
tl(5, "</div>");
5436+
5437+
tl(5, "<div class=\"margin-block\">");
5438+
tl(5, "</div>");
5439+
5440+
tl(0, "{% include ", classePageBoutonsRechercheTemplate, " %}");
5441+
tl(0, "{% include ", classePageFormulaireRechercheTemplate, " %}");
5442+
tl(0, "{% endif %}");
5443+
54175444
tl(0, "{%- endblock htmBody", i18nPage.getString(I18n.var_Debut), classePageNomSimple, " %}");
54185445
tl(0, "{%- endblock htmBody", i18nPage.getString(I18n.var_Debut), classePageSuperNomSimple, " %}");
54195446
l();
54205447
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Milieu), classePageSuperNomSimple, " %}");
54215448
tl(0, "{%- block htmBody", i18nPage.getString(I18n.var_Milieu), classePageNomSimple, " %}");
54225449

5423-
tl(0, "{%- include ", classePageBarreLateraleTemplate, " %}");
5424-
tl(0, "{%- include ", classePageRechercheSuggereTemplate, " %}");
5425-
54265450
tl(4, "<div class=\"main-content\">");
54275451
// htmBodyCount0 //
54285452
tl(0, "{% if ", varResultat, "Count == 0 %}");
54295453
ecrirePageRechercheAucun(langueNom, i18nPage);
54305454
tl(0, "{% else %}");
54315455

5432-
tl(1, "{% if ", varResultat, "Count >= 1 %}");
5456+
tl(0, "{%- include ", classePageBarreLateraleTemplate, " %}");
5457+
tl(0, "{%- include ", classePageRechercheSuggereTemplate, " %}");
5458+
54335459
// htmBodyCount1 //
54345460

54355461
///////////////////
54365462
// htmBodyCount1 //
54375463
///////////////////
5438-
5439-
tl(5, "<div class=\"margin-block\">");
5440-
tl(6, "<", composantsWebPrefixe, "tooltip for=\"", i18nPage.getString(I18n.var_retourner_a_), classeNomSimple, "\">", i18nPage.getString(I18n.str_retourner_a_), classeTousNom, "</", composantsWebPrefixe, "tooltip>");
5441-
tl(6, "<", composantsWebPrefixe, "button id=\"", i18nPage.getString(I18n.var_retourner_a_), classeNomSimple, "\"", "wa-".equals(composantsWebPrefixe) ? " variant=\"brand\"" : " variant=\"primary\" outline", " href=\"{{ SITE_BASE_URL }}{{ pageUri }}\">");
5442-
tl(7, "<i class=\"{{ FONTAWESOME_STYLE }} fa-angle-left\"></i>");
5443-
tl(7, classeTousNom);
5444-
tl(6, "</", composantsWebPrefixe, "button>");
5445-
tl(5, "</div>");
5446-
5447-
tl(0, "{% include ", classePageBoutonsRechercheTemplate, " %}");
5448-
tl(0, "{% include ", classePageFormulaireRechercheTemplate, " %}");
54495464

5450-
t(5, "<h1 class=\"", i18nPage.getString(I18n.var_Page), "_", classeVarTitre, "\">");
5451-
s(classeIcone);
5452-
s(" {{ ", varResultat, ".", classeVarTitre, " | e }}");
5453-
l("</h1>");
5454-
tl(1, "{% else %}");
5455-
ecrirePageRechercheAucun(langueNom, i18nPage);
5456-
tl(1, "{% endif %}");
54575465
tl(0, "{% endif %}");
54585466

54595467
tl(0, "{%- block htm", i18nPage.getString(I18n.var_Formulaire), classePageNomSimple, " %}");

0 commit comments

Comments
 (0)