From f651a267c583fef2dec7be9440485110634d4c6f Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Mon, 7 Jul 2014 23:23:16 +0200 Subject: [PATCH] Fixed wrong escapin of "required" attribute --- .../forms/standard/form-field-attributes-renderer.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/backOffice/default/forms/standard/form-field-attributes-renderer.html b/templates/backOffice/default/forms/standard/form-field-attributes-renderer.html index 735d35503..7f9ed124a 100644 --- a/templates/backOffice/default/forms/standard/form-field-attributes-renderer.html +++ b/templates/backOffice/default/forms/standard/form-field-attributes-renderer.html @@ -15,7 +15,7 @@ In addition to the standard form_field block output, this fragment uses the foll {* Synthetize an ID if none was given *} {if empty({$label_attr.for})} - {$label_attr.for = "id-{$field_name}"} + {$label_attr.for = "{$form->getName()}-id-{$field_name}"} {/if} {if $disabled} @@ -41,11 +41,11 @@ In addition to the standard form_field block output, this fragment uses the foll {if $type == 'hidden'} id="{$label_attr.for}" name="{$name}" value="{$value}" {elseif $type == 'checkbox' || $type == 'radio'} - id="{$label_attr.for}" name="{$name}" class="{$field_extra_class}" value="{$value}" {if $checked}checked="checked"{/if} {$sDisabled} {$sReadonly} {$sRequired} + id="{$label_attr.for}" name="{$name}" class="{$field_extra_class}" value="{$value}" {if $checked}checked="checked"{/if} {$sDisabled} {$sReadonly} {$sRequired nofilter} {elseif $type == 'choice'} - id="{$label_attr.for}" name="{$name} "class="form-control class="{$field_extra_class}" {if $multiple}multiple{/if} {if $lattr_list.size}size="{$lattr_list.size}"{/if} {$sDisabled} {$sReadonly} {$sRequired} + id="{$label_attr.for}" name="{$name} "class="form-control class="{$field_extra_class}" {if $multiple}multiple{/if} {if $lattr_list.size}size="{$lattr_list.size}"{/if} {$sDisabled} {$sReadonly} {$sRequired nofilter} {elseif $type == 'textarea'} - id="{$label_attr.for}" name="{$name}" class="form-control {$field_extra_class}" {if $attr_list.rows}rows="{$attr_list.rows}"{/if} {$sMaxLength nofilter} {$sPlaceholder nofilter} {$sDisabled} {$sReadonly} {$sRequired} + id="{$label_attr.for}" name="{$name}" class="form-control {$field_extra_class}" {if $attr_list.rows}rows="{$attr_list.rows}"{/if} {$sMaxLength nofilter} {$sPlaceholder nofilter} {$sDisabled} {$sReadonly} {$sRequired nofilter} {else} - id="{$label_attr.for}" name="{$name}" value="{$value}" class="form-control {$field_extra_class}" {$sMaxLength nofilter} {$sPlaceholder nofilter} {$sDisabled} {$sReadonly} {$sRequired} + id="{$label_attr.for}" name="{$name}" value="{$value}" class="form-control {$field_extra_class}" {$sMaxLength nofilter} {$sPlaceholder nofilter} {$sDisabled} {$sReadonly} {$sRequired nofilter} {/if}