1<#if locale == 'es_ES'>
2 <#assign requerido = "Está vacio o es incorrecto">
3<#elseif locale == 'eu_ES'>
4 <#assign requerido = "Hutsik dago edo ez da zuzena">
5<#elseif locale == 'en_EN'>
6 <#assign requerido = "Is empty or is incorrect">
7<#else>
8 <#assign requerido = "Is empty or is incorrect">
9</#if>
10
11<#assign dateFields = []>
12<#assign error="_error">
13
14
15<h2>${.vars['reserved-article-url-title'].getData()}</h2>
16
17<#if key.getSiblings()?size gt 0 && key.getSiblings()[0]?has_content>
18 <#foreach cur_key in key.getSiblings()>
19
20 <#assign tagRequerido = "">
21 <#if cur_key.field.validations.isRequired.getData() == "true">
22 <#assign tagRequerido = "*">
23 </#if>
24
25 <#assign key = cur_key.getData()>
26
27 <#assign fieldType = cur_key.field.fieldType.getData()>
28 <#if fieldType == "text" || fieldType == "textarea" || fieldType == "date">
29
30 <div class="form-group">
31 <p>${cur_key.field.fieldInfo.getData()}</p>
32 <label for="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}">${cur_key.field.label.getData()} ${tagRequerido}</label>
33 <#if fieldType == "text">
34 <#if cur_key.field.validations.isEmail.getData() == "true">
35 <input
36 type="email"
37 pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"
38 name="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}" id="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}"
39 class="form-control"
40 <#if cur_key.field.validations.isRequired.getData() == "true">
41 required
42 </#if>
43 />
44
45 <#else>
46 <input
47 type="text"
48 name="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}"
49 id="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}"
50 class="form-control"
51 <#if cur_key.field.validations.isRequired.getData() == "true">
52 required
53 </#if>
54 <#if cur_key.field.validations.maxLong.getData()?? && cur_key.field.validations.maxLong.getData()?has_content>
55 maxlength = ${cur_key.field.validations.maxLong.getData()}
56 </#if>
57 />
58 </#if>
59
60 <#elseif fieldType == "textarea">
61 <textarea
62 name="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}"
63 id="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}"
64 type="text"
65 class="form-control"
66 <#if cur_key.field.validations.isRequired.getData() == "true">
67 required
68 </#if>
69 <#if cur_key.field.validations.maxLong.getData()?? && cur_key.field.validations.maxLong.getData()?has_content>
70 maxlength = ${cur_key.field.validations.maxLong.getData()}
71 </#if>
72 ></textarea>
73
74 <#elseif fieldType == "date">
75 <input
76 type="text"
77 name="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}" id="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}"
78 autocomplete="off"
79 class="form-control"
80 <#if cur_key.field.validations.isRequired.getData() == "true">
81 required
82 </#if>
83 />
84
85 <#assign discard = "" + _dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_ + "field_" + key >
86 <#assign dateFields += [discard]>
87 </#if>
88
89 <#if cur_key.field.validations.isRequired.getData() == "true">
90 <div class="formulario_error" style="display: none" id="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}${error}">
91 <span class="error red">${requerido}</span>
92 </div>
93 <#elseif cur_key.field.validations.isEmail.getData() == "true">
94 <div class="formulario_error" style="display: none" id="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}${error}">
95 <span class="error red">${requerido}</span>
96 </div>
97 </#if>
98 </div>
99
100 <#elseif fieldType == "check">
101
102 <div class="form-group">
103 <p>${cur_key.field.fieldInfo.getData()}</p>
104 <div class="checkbox">
105 <label class="checkbox" for="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}">
106 <input
107 id="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}"
108 name="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}"
109 type="checkbox"
110 <#if cur_key.field.validations.isRequired.getData() == "true">
111 required
112 </#if>
113 />
114 ${cur_key.field.label.getData()} ${tagRequerido}
115 </label>
116
117 <#if cur_key.field.validations.isRequired.getData() == "true">
118 <div class="formulario_error" style="display: none" id="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}${error}">
119 <span class="error red">${requerido}</span>
120 </div>
121 </#if>
122 </div>
123 </div>
124
125 <#elseif fieldType == "radio">
126
127 <div class="form-group">
128 <p>${cur_key.field.fieldInfo.getData()}</p>
129 <label>${cur_key.field.label.getData()} ${tagRequerido}</label>
130 <div class="radio">
131 <#if cur_key.field.listaOpciones.getSiblings()?size gt 0 && cur_key.field.listaOpciones.getSiblings()[0]?has_content>
132 <#assign token = 0>
133 <#foreach opcion in cur_key.field.listaOpciones.getSiblings()>
134 <#if cur_key.field.validations.isRequired.getData() == "true">
135 <#if token == 0>
136 <div class="radio">
137 <label><input type="radio" name="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}" value="${opcion.value.getData()}" checked="checked" /> ${opcion.texto.getData()}</label>
138 </div>
139 <#assign token = 1>
140 <#else>
141 <div class="radio">
142 <label><input type="radio" name="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}" value="${opcion.value.getData()}" /> ${opcion.texto.getData()}</label>
143 </div>
144 </#if>
145 <#else>
146 <div class="radio">
147 <label><input type="radio" name="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}" value="${opcion.value.getData()}" /> ${opcion.texto.getData()}</label>
148 </div>
149 </#if>
150 </#foreach>
151 </#if>
152 </div>
153 </div>
154
155 <#elseif fieldType == "file">
156
157 <div class="form-group">
158 <p>${cur_key.field.fieldInfo.getData()}</p>
159 <label for="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_$key">${cur_key.field.label.getData()} ${tagRequerido}</label>
160 <input
161 type="file"
162 name="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}"
163 id="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}"
164 <#if cur_key.field.validations.isRequired.data == "true">
165 required
166 </#if>
167 />
168 <#-- <#if cur_key.field.validations.isRequired.getData() == "true"> -->
169 <div class="formulario_error" style="display: none" id="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}${error}">
170 <span class="error red">${requerido}</span>
171 </div>
172 <#-- </#if> -->
173 </div>
174
175 <#elseif fieldType == "dropdown">
176
177 <div class="form-group">
178 <p>${cur_key.field.fieldInfo.getData()}</p>
179 <label for="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}">${cur_key.field.label.getData()} ${tagRequerido}</label>
180 <#if $cur_key.field.listaOpciones.getSiblings()?size gt 0 && cur_key.field.listaOpciones.getSiblings()[0]?has_content>
181 <select name="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}" id="_dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_field_${key}" class="form-control">
182 <#foreach opcion in cur_key.field.listaOpciones.getSiblings()>
183 <option value="${opcion.value.getData()}">${opcion.texto.getData()}</option>
184 </#foreach>
185 </select>
186 </#if>
187 </div>
188
189 </#if>
190 </#foreach>
191</#if>
192<#assign dateFieldsText = "[">
193<#list dateFields as dateField>
194 <#assign dateFieldsText += dateField>
195 <#if dateField?has_next>
196 <#assign dateFieldsText += ",">
197 </#if>
198</#list>
199<#assign dateFieldsText += "]">
200<script>
201 window._dlyformulario_portlet_DLYFormularioPortlet_INSTANCE_q76uE3X0pYbf_datePickers = "${dateFieldsText}";
202</script>