html_code_entry_type_select.html
1 <div class="form-group">
2 <label class="control-label col-xs-12 col-sm-12 col-md-3" for="attribute${entry.idEntry}">${entry.title} <#if entry.mandatory>*</#if></label>
3 <div class="col-xs-12 col-sm-12 col-md-9">
4 <select name="attribute${entry.idEntry}" id="attribute${entry.idEntry}"
5 <#if list_responses??>
6 <#list list_responses as response>
7 <#if response.entry.idEntry == entry.idEntry && response.entry.error??>
8 class="error"
9 <#break>
10 </#if>
11 </#list>
12 class="${entry.CSSClass!} form-control"</#if>>
13 <option value="">#i18n{announce.xpage.form.noValue}</option>
14 <#list entry.fields as field>
15 <#if field.code == 'answer_choice'>
16 <option value="${field.idField}" <#if field.comment?? && field.comment != ''>title="${field.comment}"</#if>
17 <#if list_responses??>
18 <#list list_responses as response>
19 <#if response.entry.idEntry == entry.idEntry && response.field??>
20 <#if response.field.idField == field.idField>
21 selected ="selected"
22 <#break>
23 </#if>
24 </#if>
25 </#list>
26 <#else>
27 <#if field.defaultValue>
28 selected ="selected"
29 </#if>
30 </#if>
31 >
32 ${field.title}
33 </option>
34 </#if>
35 </#list>
36 </select>
37 <#if entry.helpMessage?exists&&entry.helpMessage!=''>
38 <p class="help-block">${entry.helpMessage}</p>
39 </#if>
40 <#if list_responses??>
41 <#list list_responses as response>
42 <#if response.entry.idEntry == entry.idEntry && response.entry.error??>
43 <div class="alert alert-error">
44 <#assign error = response.entry.error>
45 <#if error.mandatoryError>
46 #i18n{announce.message.mandatory.entry}
47 <#else>
48 ${error.errorMessage}
49 </#if>
50 </div>
51 </#if>
52 </#list>
53 </#if>
54 </div>
55 </div>