html_code_entry_type_text.html
1 <#assign field_width=getFieldValueByCode( entry, "width")>
2 <#assign field_value=getFieldValueByCode( entry, "value")>
3 <#assign field=getFieldByCode( entry, "text_config")>
4
5 <div class="form-group">
6 <label class="control-label col-xs-12 col-sm-12 col-md-3" for="attribute${entry.idEntry}">${entry.title}<#if entry.mandatory> *</#if></label>
7 <div class="col-xs-12 col-sm-12 col-md-9">
8 <input type="text" name="attribute${entry.idEntry}" id="attribute${entry.idEntry}"
9 <#if list_responses??>
10 <#list list_responses as response>
11 <#if response.entry.idEntry == entry.idEntry>
12 <#if response.valueResponse??>
13 value="${response.valueResponse}"
14 </#if>
15 <#if response.entry.error??>
16 class="error"
17 </#if>
18 </#if>
19 </#list>
20 <#else>
21 <#if field.value?exists>
22 value="${field.value}"
23 <#else>
24 value=""
25 </#if>
26 </#if>
27 <#if field.maxSizeEnter?exists && field.maxSizeEnter!=-1>
28 maxlength="${field.maxSizeEnter}"
29 </#if>
30 class="${entry.CSSClass!} form-control">
31 <#if entry.helpMessage?exists&&entry.helpMessage!=''>
32 <p class="help-block">${entry.helpMessage}</p>
33 </#if>
34 </div>
35 </div>
36 <#if list_responses??>
37 <#list list_responses as response>
38 <#if response.entry.idEntry == entry.idEntry && response.entry.error??>
39 <#assign error = response.entry.error>
40 <div class="alert alert-error"><#if error.mandatoryError>#i18n{announce.message.mandatory.entry}<#else>${error.errorMessage}</#if></div>
41 </#if>
42 </#list>
43 </#if>
44 <#if entry.confirmField?exists && entry.confirmField>
45 <div class="form-group">
46 <label class="control-label col-xs-12 col-sm-12 col-md-3" for="attribute${entry.idEntry}_confirm_field">${entry.confirmFieldTitle}<#if entry.mandatory> *</#if></label>
47 <div class="col-xs-12 col-sm-12 col-md-9">
48 <input type="text" name="attribute${entry.idEntry}_confirm_field" id="attribute${entry.idEntry}_confirm_field" class="form-control" value=""
49 <#if field_maxSize!=-1>maxlength="${field_maxSize}"</#if>/>
50 </div>
51 </div>
52 </#if>