Skip to content

Commit

Permalink
Fixing the form on SearchPages
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Jan 10, 2025
1 parent c07a1bb commit f5bbc4f
Showing 1 changed file with 62 additions and 43 deletions.
105 changes: 62 additions & 43 deletions src/main/java/org/computate/frFR/java/EcrirePageClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -5301,6 +5301,27 @@ public void ecrirePageRechercheJinja(String langueNom, JsonObject i18nPage) thro
ecrirePageRechercheAucun(langueNom, i18nPage);
tl(0, "{% else %}");

tl(5, "<form action=\"", classeApiUri, "\" id=\"", classeApiClasseNomSimple, "Form\" class=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Formulaire), " \" onsubmit=\"event.preventDefault(); return false; \">");
t(6, "<input");
s(" name=\"focusId\"");
s(" type=\"hidden\"");
l("/>");
t(6, "<input");
s(" name=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), "\"");
s(" id=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), "\"");
s(" class=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), "\" ");
s(" value='{{ toJsonObjectStringInApostrophes(", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), ") }}'");
s(" type=\"hidden\"");
l("/>");
t(6, "<input");
s(" name=\"", i18nPage.getString(I18n.var_liste), classeNomSimple, "\"");
s(" id=\"", i18nPage.getString(I18n.var_liste), classeNomSimple, "\"");
s(" class=\"", i18nPage.getString(I18n.var_liste), classeNomSimple, "\" ");
s(" value='{{ toJsonArrayStringInApostrophes(", i18nPage.getString(I18n.var_liste), classeNomSimple, ") }}'");
s(" type=\"hidden\"");
l("/>");
tl(5, "</form>");

tl(4, "<div class=\"pageContent \">");
tl(5, "<div id=\"site-calendar-box\">");
// tl(7, "<h3 id=\"site-calendar-title\">Calendar</h3>");
Expand Down Expand Up @@ -5448,49 +5469,47 @@ public void ecrirePageEditionJinja(String langueNom, JsonObject i18nPage) throws
tl(1, "{% endif %}");
tl(0, "{% endif %}");

if(classeVarClePrimaire != null || !classeModele) {
tl(0, "{%- block htm", i18nPage.getString(I18n.var_Formulaire), classePageNomSimple, " %}");
tl(5, "<form action=\"", classeApiUri, "\" id=\"", classeApiClasseNomSimple, "Form\" class=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Formulaire), " \" onsubmit=\"event.preventDefault(); return false; \">");
tl(0, "{% if ", classeVarId, " is defined %}");
t(6, "<input");
s(" name=\"", classeVarId, "\"");
s(" class=\"", i18nPage.getString(I18n.var_valeur), StringUtils.capitalize(classeVarId), "\"");
s(" type=\"hidden\"");
s(" value=\"{{", classeVarId, "}}\"");
l("/>");
tl(6, "{% endif %}");
t(6, "<input");
s(" name=\"focusId\"");
s(" type=\"hidden\"");
l("/>");
t(6, "<input");
s(" name=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), "\"");
s(" id=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), "\"");
s(" class=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), "\" ");
s(" value='{{ toJsonObjectStringInApostrophes(", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), ") }}'");
s(" type=\"hidden\"");
l("/>");
t(6, "<input");
s(" name=\"", varResultat, "\"");
s(" id=\"", varResultat, "\"");
s(" class=\"", varResultat, "\" ");
s(" value='{{ toJsonObjectStringInApostrophes(", varResultat, ") }}'");
s(" type=\"hidden\"");
l("/>");
t(6, "<input");
s(" name=\"", i18nPage.getString(I18n.var_liste), classeNomSimple, "\"");
s(" id=\"", i18nPage.getString(I18n.var_liste), classeNomSimple, "\"");
s(" class=\"", i18nPage.getString(I18n.var_liste), classeNomSimple, "\" ");
s(" value='{{ toJsonArrayStringInApostrophes(", i18nPage.getString(I18n.var_liste), classeNomSimple, ") }}'");
s(" type=\"hidden\"");
l("/>");
tl(5, "</form>");
tl(1, "{% if ", classeVarCleUnique, " is defined %}");
tl(5, "{{ htm", i18nPage.getString(I18n.var_Bouton), "_", StringUtils.lowerCase(i18nPage.getString(I18n.var_PageRecherche)), classeApiClasseNomSimple, "() }}");
tl(5, "{{ htm", i18nPage.getString(I18n.var_Formulaire), "_", StringUtils.lowerCase(i18nPage.getString(I18n.var_PageRecherche)), classeApiClasseNomSimple, "() }}");
tl(1, "{% endif %}");
tl(0, "{%- endblock htm", i18nPage.getString(I18n.var_Formulaire), classePageNomSimple, " %}");
}
tl(0, "{%- block htm", i18nPage.getString(I18n.var_Formulaire), classePageNomSimple, " %}");
tl(5, "<form action=\"", classeApiUri, "\" id=\"", classeApiClasseNomSimple, "Form\" class=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Formulaire), " \" onsubmit=\"event.preventDefault(); return false; \">");
tl(0, "{% if ", classeVarId, " is defined %}");
t(6, "<input");
s(" name=\"", classeVarId, "\"");
s(" class=\"", i18nPage.getString(I18n.var_valeur), StringUtils.capitalize(classeVarId), "\"");
s(" type=\"hidden\"");
s(" value=\"{{", classeVarId, "}}\"");
l("/>");
tl(6, "{% endif %}");
t(6, "<input");
s(" name=\"focusId\"");
s(" type=\"hidden\"");
l("/>");
t(6, "<input");
s(" name=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), "\"");
s(" id=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), "\"");
s(" class=\"", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), "\" ");
s(" value='{{ toJsonObjectStringInApostrophes(", i18nPage.getString(I18n.var_page), i18nPage.getString(I18n.var_Reponse), ") }}'");
s(" type=\"hidden\"");
l("/>");
t(6, "<input");
s(" name=\"", varResultat, "\"");
s(" id=\"", varResultat, "\"");
s(" class=\"", varResultat, "\" ");
s(" value='{{ toJsonObjectStringInApostrophes(", varResultat, ") }}'");
s(" type=\"hidden\"");
l("/>");
t(6, "<input");
s(" name=\"", i18nPage.getString(I18n.var_liste), classeNomSimple, "\"");
s(" id=\"", i18nPage.getString(I18n.var_liste), classeNomSimple, "\"");
s(" class=\"", i18nPage.getString(I18n.var_liste), classeNomSimple, "\" ");
s(" value='{{ toJsonArrayStringInApostrophes(", i18nPage.getString(I18n.var_liste), classeNomSimple, ") }}'");
s(" type=\"hidden\"");
l("/>");
tl(5, "</form>");
tl(1, "{% if ", classeVarCleUnique, " is defined %}");
tl(5, "{{ htm", i18nPage.getString(I18n.var_Bouton), "_", StringUtils.lowerCase(i18nPage.getString(I18n.var_PageRecherche)), classeApiClasseNomSimple, "() }}");
tl(5, "{{ htm", i18nPage.getString(I18n.var_Formulaire), "_", StringUtils.lowerCase(i18nPage.getString(I18n.var_PageRecherche)), classeApiClasseNomSimple, "() }}");
tl(1, "{% endif %}");
tl(0, "{%- endblock htm", i18nPage.getString(I18n.var_Formulaire), classePageNomSimple, " %}");
tl(4, "</div>");

tl(0, "{%- endblock htmBody", i18nPage.getString(I18n.var_Milieu), classePageNomSimple, " %}");
Expand Down

0 comments on commit f5bbc4f

Please sign in to comment.