Skip to content

Commit

Permalink
Adding entity simple name to input placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Oct 24, 2024
1 parent acde328 commit 70d52d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/computate/frFR/java/EcrirePageClasse.java
Original file line number Diff line number Diff line change
Expand Up @@ -593,14 +593,13 @@ else if(BooleanUtils.isTrue(entiteSignature)) {

}
else {
//STUFF1
if(entiteLien) {
tl(1, "{%- if 'Page' == ", langueConfig.getString(I18n.var_classeApiMethodeMethode), " %}");
tl(9, "<sl-button");
tl(11, "id=\"{{", langueConfig.getString(I18n.var_classeApiMethodeMethode), "}}_", entiteVar, "\"");

if(entiteNomAffichage != null) {
tl(11, "placeholder=\"", entiteDefaut == null ? entiteNomAffichage : entiteDefaut, "\"");
tl(11, "placeholder=\"[", entiteNomSimple, "] ", entiteDefaut == null ? entiteNomAffichage : entiteDefaut, "\"");
tl(11, "label=\"", entiteDefaut == null ? entiteNomAffichage : entiteDefaut, "\"");
}
if(entiteDescription != null) {
Expand Down Expand Up @@ -633,7 +632,7 @@ else if(BooleanUtils.isTrue(entiteSignature)) {
}

if(entiteNomAffichage != null) {
tl(11, "placeholder=\"", entiteDefaut == null ? entiteNomAffichage : entiteDefaut, "\"");
tl(11, "placeholder=\"[", entiteNomSimple, "] ", entiteDefaut == null ? entiteNomAffichage : entiteDefaut, "\"");
tl(11, "label=\"", entiteDefaut == null ? entiteNomAffichage : entiteDefaut, "\"");
}
if(entiteDescription != null) {
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 @@ -5597,7 +5597,7 @@ else if("location".equals(fieldName))
if(description != null)
wSmartDataModel.l(" * Description: ", description.replace("\r\n", " ").replace("\n", " "), "");
if(i == 0)
wSmartDataModel.l(String.format(" * HtmRowTitle: %s details", classeSmartDataModel));
wSmartDataModel.l(String.format(" * HtmRowTitleOpen: %s details", classeSmartDataModel));
wSmartDataModel.l(" * HtmRow: ", row, "");
wSmartDataModel.l(" * HtmCell: ", cell, "");
if("name".equals(fieldName)) {
Expand Down

0 comments on commit 70d52d8

Please sign in to comment.