<#assign field = getFieldByCode( entry, "default_date_value" ) > <#if field.valueTypeDate?exists><#assign value = field.valueTypeDate?long?number_to_datetime /><#else><#assign value = '' /> <#if list_responses??> <#list list_responses as response> <#if response.entry.idEntry == entry.idEntry> <#if response.entry.error??><#assign class = 'has-error' /> <#if response.responseValue??><#assign value = response.responseValue?number?number_to_datetime /> <@formGroup labelFor='attribute${entry.idEntry}' labelKey='${entry.title}' helpKey='${entry.helpMessage!}' class=class mandatory=entry.mandatory> <#assign field = getFieldByCode( entry, "default_date_value" ) > <@inputGroup> <@input type='datetime' name='attribute${entry.idEntry}' id='attribute${entry.idEntry}' value=value class='${entry.CSSClass!}' /> <@inputGroupItem type='text'> <@icon style='calendar' /> <#if list_responses??> <#list list_responses as response> <#if response.entry.idEntry == entry.idEntry && response.entry.error?? && response.entry.error.isDisplayableError> <@alert color='danger'> <#assign error = response.entry.error> <#if error.mandatoryError>${error.errorMessage}<#else>#i18n{appointment.message.mandatory.entry}