html_code_entry_type_geolocation.html
1 <#if entry.fields?has_content>
2 <#assign addressField = getFieldValueByCode( entry, "address" )>
3 <#assign xField = getFieldValueByCode( entry, "X" )>
4 <#assign yField = getFieldValueByCode( entry, "Y" )>
5 </#if>
6 <div class="form-group">
7 <label class="control-label col-xs-12 col-sm-12 col-md-3" for="form${entry.idEntry}_address" id="attribute${entry.idEntry}">${entry.title}<#if entry.mandatory> *</#if></label>
8 <div class="col-xs-12 col-sm-12 col-md-9">
9 <#if list_responses??>
10 <#list list_responses as response>
11 <#if response.entry.idEntry == entry.idEntry && response.toStringValueResponse??>
12 <#if response.field.title??>
13 <#if response.field.title == "X">
14 <input type="hidden" name="${entry.idEntry}_x" id="${entry.idEntry}_x" value="${response.toStringValueResponse!}">
15 <#elseif response.field.title == "Y">
16 <input type="hidden" name="${entry.idEntry}_y" id="${entry.idEntry}_y" value="${response.toStringValueResponse!}">
17 <#elseif response.field.title == "idAddress">
18 <input type="hidden" name="${entry.idEntry}_idAddress" id="${entry.idEntry}_idAddress" value="${response.toStringValueResponse!}">
19 <#else>
20 <input type="text" name="${entry.idEntry}_address" id="${entry.idEntry}_address" class="form-control <#if response.entry.error??>error"<#else>${entry.CSSClass!}</#if>" value="${response.toStringValueResponse!}" />
21 </#if>
22 </#if>
23 </#if>
24 </#list>
25 <#else>
26 <input type="text" value="" name="${entry.idEntry}_address" id="${entry.idEntry}_address" class="form-control">
27 <input type="hidden" name="${entry.idEntry}_x" id="${entry.idEntry}_x" value="">
28 <input type="hidden" name="${entry.idEntry}_y" id="${entry.idEntry}_y" value="">
29 <input type="hidden" name="${entry.idEntry}_idAddress" id="${entry.idEntry}_idAddress" value="">
30 </#if>
31 <#if entry.helpMessage?exists&&entry.helpMessage!=''>
32 <p class="help-block">${entry.helpMessage}</p>
33 </#if>
34
35 <#if list_responses??>
36 <#assign show_error = 0>
37 <#list list_responses as response>
38 <#if response.entry.idEntry == entry.idEntry && response.entry.error?? && show_error == 0>
39 <#assign show_error = 1>
40 <div class="alert alert-error">
41 <#assign error = response.entry.error>
42 <#if error.mandatoryError>
43 #i18n{announce.message.mandatory.entry}
44 <#else>
45 ${error.errorMessage}
46 </#if>
47 </div>
48 </#if>
49 </#list>
50 </#if>
51 <#if entry.mapProvider?has_content>
52 <#include entry.mapProvider.htmlCode />
53 </#if>
54 </div>
55 </div>