|
157 | 157 | -->
|
158 | 158 | <#macro formInput path attributes="" fieldType="text">
|
159 | 159 | <@bind path/>
|
160 |
| - <input type="${fieldType}" id="${status.expression}" name="${status.expression}" value="<#if fieldType!="password">${stringStatusValue}</#if>" ${attributes}<@closeTag/> |
| 160 | + <input type="${fieldType}" id="${status.expression?replace('[','')?replace(']','')}" name="${status.expression}" value="<#if fieldType!="password">${stringStatusValue}</#if>" ${attributes}<@closeTag/> |
161 | 161 | </#macro>
|
162 | 162 |
|
163 | 163 | <#--
|
|
202 | 202 | -->
|
203 | 203 | <#macro formTextarea path attributes="">
|
204 | 204 | <@bind path/>
|
205 |
| - <textarea id="${status.expression}" name="${status.expression}" ${attributes}>${stringStatusValue}</textarea> |
| 205 | + <textarea id="${status.expression?replace('[','')?replace(']','')}" name="${status.expression}" ${attributes}>${stringStatusValue}</textarea> |
206 | 206 | </#macro>
|
207 | 207 |
|
208 | 208 | <#--
|
|
218 | 218 | -->
|
219 | 219 | <#macro formSingleSelect path options attributes="">
|
220 | 220 | <@bind path/>
|
221 |
| - <select id="${status.expression}" name="${status.expression}" ${attributes}> |
| 221 | + <select id="${status.expression?replace('[','')?replace(']','')}" name="${status.expression}" ${attributes}> |
222 | 222 | <#if options?is_hash>
|
223 | 223 | <#list options?keys as value>
|
224 | 224 | <option value="${value?html}"<@checkSelected value/>>${options[value]?html}</option>
|
|
244 | 244 | -->
|
245 | 245 | <#macro formMultiSelect path options attributes="">
|
246 | 246 | <@bind path/>
|
247 |
| - <select multiple="multiple" id="${status.expression}" name="${status.expression}" ${attributes}> |
| 247 | + <select multiple="multiple" id="${status.expression?replace('[','')?replace(']','')}" name="${status.expression}" ${attributes}> |
248 | 248 | <#list options?keys as value>
|
249 | 249 | <#assign isSelected = contains(status.actualValue?default([""]), value)>
|
250 | 250 | <option value="${value?html}"<#if isSelected> selected="selected"</#if>>${options[value]?html}</option>
|
|
267 | 267 | <#macro formRadioButtons path options separator attributes="">
|
268 | 268 | <@bind path/>
|
269 | 269 | <#list options?keys as value>
|
270 |
| - <#assign id="${status.expression}${value_index}"> |
| 270 | + <#assign id="${status.expression?replace('[','')?replace(']','')}${value_index}"> |
271 | 271 | <input type="radio" id="${id}" name="${status.expression}" value="${value?html}"<#if stringStatusValue == value> checked="checked"</#if> ${attributes}<@closeTag/>
|
272 | 272 | <label for="${id}">${options[value]?html}</label>${separator}
|
273 | 273 | </#list>
|
|
288 | 288 | <#macro formCheckboxes path options separator attributes="">
|
289 | 289 | <@bind path/>
|
290 | 290 | <#list options?keys as value>
|
291 |
| - <#assign id="${status.expression}${value_index}"> |
| 291 | + <#assign id="${status.expression?replace('[','')?replace(']','')}${value_index}"> |
292 | 292 | <#assign isSelected = contains(status.actualValue?default([""]), value)>
|
293 | 293 | <input type="checkbox" id="${id}" name="${status.expression}" value="${value?html}"<#if isSelected> checked="checked"</#if> ${attributes}<@closeTag/>
|
294 | 294 | <label for="${id}">${options[value]?html}</label>${separator}
|
|
307 | 307 | -->
|
308 | 308 | <#macro formCheckbox path attributes="">
|
309 | 309 | <@bind path />
|
310 |
| - <#assign id="${status.expression}"> |
| 310 | + <#assign id="${status.expression?replace('[','')?replace(']','')}"> |
311 | 311 | <#assign isSelected = status.value?? && status.value?string=="true">
|
312 | 312 | <input type="hidden" name="_${id}" value="on"/>
|
313 | 313 | <input type="checkbox" id="${id}" name="${id}"<#if isSelected> checked="checked"</#if> ${attributes}/>
|
|
0 commit comments