Commit c6a724ae authored by Guillaume Lépine's avatar Guillaume Lépine
Browse files

FORMS-723: EntryTypeNumner: modify templates for suffix field

parent ce75d024
...@@ -590,6 +590,8 @@ createEntry.labelImageSize=Maximum size of the image ...@@ -590,6 +590,8 @@ createEntry.labelImageSize=Maximum size of the image
createEntry.labelEntryType=Type createEntry.labelEntryType=Type
createEntry.labelPrefix=Prefix createEntry.labelPrefix=Prefix
createEntry.labelPrefixComment=Numbering prefix createEntry.labelPrefixComment=Numbering prefix
createEntry.labelSuffix=Suffix
createEntry.labelSuffixComment=Number suffix
createEntry.labelDisplayFrontOffice=Display in Front Office createEntry.labelDisplayFrontOffice=Display in Front Office
createEntry.labelUseRichText=Use a rich text editor createEntry.labelUseRichText=Use a rich text editor
createEntry.labelUseRichTextComment=Check to add a BBCode editor (Back Office Only) createEntry.labelUseRichTextComment=Check to add a BBCode editor (Back Office Only)
......
...@@ -601,6 +601,8 @@ createEntry.labelImageSize=La taille maximale de la capture ...@@ -601,6 +601,8 @@ createEntry.labelImageSize=La taille maximale de la capture
createEntry.labelEntryType=Type createEntry.labelEntryType=Type
createEntry.labelPrefix=Pr\u00e9fixe createEntry.labelPrefix=Pr\u00e9fixe
createEntry.labelPrefixComment=Pr\u00e9fixe de la num\u00e9rotation createEntry.labelPrefixComment=Pr\u00e9fixe de la num\u00e9rotation
createEntry.labelSuffix=Suffixe
createEntry.labelSuffixComment=Suffixe du num\u00e9ro
createEntry.labelDisplayFrontOffice=Afficher en Front Office createEntry.labelDisplayFrontOffice=Afficher en Front Office
createEntry.labelUseRichText=Utiliser un editeur de texte riche createEntry.labelUseRichText=Utiliser un editeur de texte riche
createEntry.labelUseRichTextComment=Cocher pour ajouter un editeur BBCode (BO uniquement) createEntry.labelUseRichTextComment=Cocher pour ajouter un editeur BBCode (BO uniquement)
......
...@@ -25,6 +25,9 @@ ${breadcrumb_template} ...@@ -25,6 +25,9 @@ ${breadcrumb_template}
<@formGroup labelFor='entry_code' labelKey='#i18n{forms.createEntry.labelCode}' helpKey='#i18n{forms.createEntry.labelCodeComment}'> <@formGroup labelFor='entry_code' labelKey='#i18n{forms.createEntry.labelCode}' helpKey='#i18n{forms.createEntry.labelCodeComment}'>
<@input type='text' name='entry_code' id='entry_code' value='' maxlength=100 /> <@input type='text' name='entry_code' id='entry_code' value='' maxlength=100 />
</@formGroup> </@formGroup>
<@formGroup labelFor='suffix' labelKey='#i18n{forms.createEntry.labelSuffix}' helpKey='#i18n{forms.createEntry.labelSuffixComment}'>
<@input type='text' name='suffix' id='suffix' value='' maxlength=255 />
</@formGroup>
<@formGroup labelFor='help_message' labelKey='#i18n{forms.createEntry.labelHelpMessage}' helpKey='#i18n{forms.createEntry.labelHelpMessageComment}'> <@formGroup labelFor='help_message' labelKey='#i18n{forms.createEntry.labelHelpMessage}' helpKey='#i18n{forms.createEntry.labelHelpMessageComment}'>
<@input type='textarea' name='help_message' id='help_message' rows=2></@input> <@input type='textarea' name='help_message' id='help_message' rows=2></@input>
</@formGroup> </@formGroup>
......
...@@ -24,6 +24,12 @@ ${breadcrumb_template} ...@@ -24,6 +24,12 @@ ${breadcrumb_template}
<@formGroup labelFor='entry_code' labelKey='#i18n{forms.createEntry.labelCode}' helpKey='#i18n{forms.createEntry.labelCodeComment}'> <@formGroup labelFor='entry_code' labelKey='#i18n{forms.createEntry.labelCode}' helpKey='#i18n{forms.createEntry.labelCodeComment}'>
<@input type='text' name='entry_code' id='entry_code' value='${entry.code}' maxlength=100 /> <@input type='text' name='entry_code' id='entry_code' value='${entry.code}' maxlength=100 />
</@formGroup> </@formGroup>
<#if entry.fields?? && entry.fields?has_content>
<#assign suffix = getFieldValueByCode( entry, 'suffix') >
<@formGroup labelFor='suffix' labelKey='#i18n{forms.createEntry.labelSuffix}' helpKey='#i18n{forms.createEntry.labelSuffixComment}'>
<@input type='text' name='suffix' value=suffix maxlength=255 />
</@formGroup>
</#if>
<@formGroup labelFor='help_message' labelKey='#i18n{forms.createEntry.labelHelpMessage}'> <@formGroup labelFor='help_message' labelKey='#i18n{forms.createEntry.labelHelpMessage}'>
<@input type='textarea' name='help_message' id='help_message' rows=2>${entry.helpMessage}</@input> <@input type='textarea' name='help_message' id='help_message' rows=2>${entry.helpMessage}</@input>
</@formGroup> </@formGroup>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment