<#include "all_entry_commons.html" /> <#include "/admin/util/editor/editor.html" /> ${breadcrumb_template} <@row> <@columns> <@box color='primary'> <@boxHeader title='#i18n{forms.modifyEntry.titleQuestion} : "${form.title}"' /> <@boxBody> <@tform action="${action}"> <@fieldSet legend='#i18n{forms.modifyEntry.titleQuestion} : "${form.title}"' hideLegend=['all']> <@input type='hidden' name='id_entry' value='${entry.idEntry}' /> <@input type='hidden' name='id_step' value='${step.id}' /> <@input type='hidden' name='id_question' value='${question.id}' /> <@formGroup labelFor='type' labelKey='#i18n{forms.createEntry.labelType}'> <@staticText><@tag color='info'>${entry.entryType.title} <@formGroup labelFor='title' labelKey='#i18n{forms.createEntry.labelTitle}' helpKey='#i18n{forms.createEntry.labelTitleComment}' mandatory=true> <@input type='text' name='title' id='title' value='${entry.title}' maxlength=255 /> <@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 /> <@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>${entry.helpMessage} <@formGroup labelFor='comment' labelKey='#i18n{forms.createEntry.labelComment}'> <@input type='textarea' name='comment' id='comment' rows=5>${entry.comment} <#assign placeholder = getFieldValueByCode(entry, "placeholder") > <@formGroup labelFor='placeholder' labelKey='#i18n{forms.createEntry.labelPlaceholder}'> <@input type='text' name='placeholder' id='placeholder' value=placeholder maxlength=100 /> <@formGroup labelFor='date' labelKey='#i18n{forms.createEntry.labelValueDefault}'> <#assign field = getFieldByCode( entry, "default_date_value" ) > <@inputGroup> <@inputGroupItem type='text'><@icon style='calendar' /> <#assign default=''> <#if field.valueTypeDate?? > <#assign default=field.valueTypeDate> <@input type='date' language=locale name='value' id='date' value=default /> <@formGroup> <@checkBox orientation='switch' labelFor='mandatory' labelKey='#i18n{forms.createEntry.labelMandatory}' name='mandatory' id='mandatory' value='1' checked=entry.mandatory /> <@formGroup> <@checkBox orientation='switch' labelFor='only_display_in_back' labelKey='#i18n{forms.createEntry.labelOnlyDisplayBack}' name='only_display_in_back' id='only_display_in_back' value='1' checked=entry.onlyDisplayInBack /> <@formGroup helpKey='#i18n{forms.createEntry.labelResponsesIndexedComment}'> <@checkBox orientation='switch' labelFor='is_indexed' labelKey='#i18n{forms.createEntry.labelResponsesIndexed}' name='is_indexed' id='is_indexed' value='1' checked=entry.indexed /> <@formGroup> <#assign anonymizable=getFieldByCode( entry, "anonymizable")> <#if anonymizable.value?boolean> <#assign checkedValue = true /> <#assign anonPattern = anonymizable.title /> <#else> <#assign checkedValue = false /> <#assign anonPattern ="" /> <@checkBox orientation='switch' labelFor='anonymizable' labelKey='#i18n{forms.createEntry.labelAnonymizable}' name='anonymizable' id='anonymizable' value='1' params='onchange="javascript:changeVisilityAnonymizePattern();"' checked=checkedValue /> <@formGroup labelFor='anonymize_pattern' id="anonymize_pattern_group" labelKey='#i18n{forms.createEntry.labelAnonymizePattern}' helpKey='${anonymization_help_message}' > <@input type='text' name='anonymize_pattern' id='anonymize_pattern' value='${anonPattern!}' maxlength=255 /> <#if entry.exportable> <@input type='hidden' name='exportable' value='1' /> <#if entry.exportablePdf> <@input type='hidden' name='exportable_pdf' value='1' /> <@formGroup labelFor='css_class' labelKey='#i18n{forms.createEntry.labelCSSClass}' helpKey='#i18n{forms.createEntry.labelCSSClassComment}'> <@input type='text' name='css_class' id='css_class' value='${entry.CSSClass!}' maxlength=255 /> ${question_modify_template!} <@formGroup> <@button type='submit' name='action_modifyQuestion' buttonIcon='save' title='#i18n{forms.createEntry.buttonSave}' hideTitle=['xs'] /> <@button type='cancel' name='view_manageQuestions' buttonIcon='close' title='#i18n{forms.createEntry.buttonCancel}' hideTitle=['xs'] color='default' cancel=true /> <@anonymPattern /> <@initEditor />