Skip to content

Commit

Permalink
Merge branch 'main' of github.com:computate-org/computate
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Oct 27, 2024
2 parents 4145e7e + d28fb54 commit 19a15b0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
23 changes: 21 additions & 2 deletions src/main/java/org/computate/frFR/java/EcrirePageClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -3648,7 +3648,7 @@ else if(classeApiMethode.contains(i18nPage.getString(I18n.var_PUTCopie)))
tl(6, "{%- endmacro htmBody", i18nPage.getString(I18n.var_Tous), classePageNomSimple, "() %}");

tl(0, "{%- macro htm", i18nPage.getString(I18n.var_BoutonsRecherche), classePageNomSimple, "() %}");
tl(4, "<div id=\"htm", i18nPage.getString(I18n.var_BoutonsRecherche), "\">");
tl(4, "<div id=\"htm", i18nPage.getString(I18n.var_BoutonsRecherche), "\" class=\"round-first-and-last-column-pill \">");

//////////////
// bouton q //
Expand Down Expand Up @@ -3803,7 +3803,7 @@ else if(classeApiMethode.contains(i18nPage.getString(I18n.var_PUTCopie)))

tl(6, "<", composantsWebPrefixe, "divider></", composantsWebPrefixe, "divider>");

tl(6, "<div id=\"htm", i18nPage.getString(I18n.var_Bouton), i18nPage.getString(I18n.var_Groupe), "\">");
tl(6, "<div id=\"htm", i18nPage.getString(I18n.var_Bouton), i18nPage.getString(I18n.var_Groupe), "\" class=\"round-first-and-last-column-pill \">");

// recharger 1 //
s("{% if ", uncapitalizeClasseApiClasseNomSimple, "Count == 1 %}");
Expand Down Expand Up @@ -5089,6 +5089,25 @@ else if(classeApiMethode.contains(i18nPage.getString(I18n.var_PUTCopie)))
auteurPageJs.tl(5, i18nPage.getString(I18n.var_jsInfobulle), classeNomSimple, "(e, feature);");
auteurPageJs.tl(4, "}");
auteurPageJs.tl(3, "});");
auteurPageJs.tl(3, "const drawnItems = new L.FeatureGroup();");
auteurPageJs.tl(3, "window.map", classeNomSimple, ".addLayer(drawnItems);");
auteurPageJs.tl(3, "const drawControl = new L.Control.Draw({");
auteurPageJs.tl(4, "edit: {");
auteurPageJs.tl(5, "featureGroup: drawnItems");
auteurPageJs.tl(4, "},");
auteurPageJs.tl(4, "draw: {");
auteurPageJs.tl(5, "polygon: true");
auteurPageJs.tl(5, ", polygon: true");
auteurPageJs.tl(5, ", polyline: true");
auteurPageJs.tl(5, ", rectangle: true");
auteurPageJs.tl(5, ", circle: true");
auteurPageJs.tl(5, ", marker: true");
auteurPageJs.tl(4, "}");
auteurPageJs.tl(3, "});");
auteurPageJs.tl(3, "window.map", classeNomSimple, ".addControl(drawControl);");
auteurPageJs.tl(3, "window.map", classeNomSimple, ".on(L.Draw.Event.CREATED, function (event) {");
auteurPageJs.tl(4, "drawnItems.addLayer(event.layer);");
auteurPageJs.tl(3, "});");
auteurPageJs.tl(2, "}");
}
auteurPageJs.tl(1, "}");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/computate/frFR/java/IndexerClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -5727,7 +5727,7 @@ else if("location".equals(fieldName))
wSmartDataModel.l(" @Override");
wSmartDataModel.l(" protected void _objectTitle(Wrap<String> w) {");
wSmartDataModel.l(" StringBuilder b = new StringBuilder();");
wSmartDataModel.l(" b.append(Optional.ofNullable(entityShortId).map(s -> String.format(\"%s - %s\", ", classeNomSimple, "_NameAdjectiveSingular_enUS, s)).orElse(pk.toString()));");
wSmartDataModel.l(" b.append(Optional.ofNullable(entityShortId).map(s -> String.format(\"%s %s\", ", classeNomSimple, "_NameAdjectiveSingular_enUS, s)).orElse(pk.toString()));");
wSmartDataModel.l(" w.o(b.toString().trim());");
wSmartDataModel.l(" }");
wSmartDataModel.l("");
Expand Down

0 comments on commit 19a15b0

Please sign in to comment.