#assign field = getFieldByCode( entry, "default_date_value" ) >
<#if field.valueTypeDate?exists>
<#assign value = field.valueTypeDate />
<#else>
<#assign value = '' />
#if>
<#if list_responses??>
<#list list_responses as response>
<#if response.entry.idEntry == entry.idEntry>
<#if response.entry.error??>
<#assign class = 'has-error' />
#if>
<#if response.responseValue??>
<#assign value = response.responseValue?number?number_to_datetime />
#if>
#if>
#list>
#if>
<@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' />
@inputGroupItem>
@inputGroup>
<#if list_responses??>
<#list list_responses as response>
<#if response.entry.idEntry == entry.idEntry && response.entry.error?? && response.entry.error.isDisplayableError>
<@alert class='danger'>
<#assign error = response.entry.error>
<#if error.mandatoryError>${error.errorMessage}<#else>#i18n{appointment.message.mandatory.entry}#if>
@alert>
#if>
#list>
#if>
@formGroup>
<@getDatePickerBootstrap idField="attribute${entry.idEntry}" language=locale format='Y-m-d H:i:S' />