#if list_responses??>
<#list list_responses as response>
<#if response.entry.idEntry == entry.idEntry && response.entry.error??>
<#assign class = 'has-error' />
<#break>
#if>
#list>
#if>
<@formGroup labelFor='attribute${entry.idEntry}' labelKey='${entry.title}' helpKey='${entry.helpMessage!}' mandatory=entry.mandatory class='${class!}'+'${entry.CSSClass!}'>
<@select name='attribute${entry.idEntry}' id='attribute${entry.idEntry}'>
<#list entry.fields as field>
<#if field.code == 'answer_choice'>
#if>
#list>
@select>
<#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>