<#assign idName = buildEntryName( entry, entry_iteration_number )> <#assign field_width=getFieldValueByCode( entry, "width")> <#assign field_max_size=getFieldValueByCode( entry, "max_size")> <#assign field=getFieldByCode( entry, "text_config")> <#assign field_autocomplete = getFieldByCode(entry, "autocomplete")!{}> <#if field_autocomplete?? && field_autocomplete.value??> <#assign autocomplete = "autocomplete=${field_autocomplete.value}" /> <#else> <#assign autocomplete = "" /> <#if list_responses?has_content> <#list list_responses as response> <#if response.entry.idEntry == entry.idEntry> <#if response.toStringValueResponse??> <#assign inputValue = response.toStringValueResponse /> <#if response.entry.error??> <#assign groupStyle = 'error' /> <#else> <#if field.value?exists> <#assign inputValue = field.value /> <#else> <#assign inputValue = '' /> <@formGroup labelFor='${idName}' labelKey='${entry.title}' helpKey=entry.helpMessage!'' groupStyle=groupStyle!'' mandatory=entry.mandatory rows=2> <#assign placeholder = getFieldValueByCode(entry, "placeholder") > <@inputGroup> <@input type='text' name='${idName}' id='${idName}' class='${entry.CSSClass!}' value=inputValue params=autocomplete placeHolder=placeholder/> <#if getFieldByCode( entry, "illustration_image")??> <#assign illustration_image_entry=getFieldByCode( entry, "illustration_image")> <#assign image_id = illustration_image_entry.value> <#list fields_list_by_id_entries as key, value> <#if key = illustration_image_entry.idField> <@img url=value title=illustration_image_entry.title class='img-thumbnail thumbnail-sm p-1' /> <#if list_responses??> <#list list_responses as response> <#if response.entry.idEntry == entry.idEntry && response.entry.error?? && response.entry.error.isDisplayableError> <#assign error = response.entry.error> <@alert color='danger'><#if error.mandatoryError>#i18n{forms.message.mandatory.entry}<#else>${error.errorMessage} <#assign confirmField=getFieldByCode( entry, "confirm_field")> <#if confirmField.value?boolean> <#assign idName = buildEntryName( entry, entry_iteration_number )> <@formGroup labelFor='${idName}_confirm_field' labelKey='${confirmField.title}' mandatory=entry.mandatory htmlRequired=false > <#assign field_width=getFieldValueByCode( entry, "width")> <#assign field_max_size=getFieldValueByCode( entry, "max_size")> <#assign field=getFieldByCode( entry, "text_config")> <#if confirmFieldValue?exists> <#assign confirm_fieldValue = confirmFieldValue /> <#else> <#assign confirm_fieldValue = '' /> <@input type='text' name='${idName}_confirm_field' id='${idName}_confirm_field' inputSize=field_width?number value="${confirm_fieldValue}"/>