Permalink
Browse files

Merge pull request #2438 from InformatiqueProg/form-field-render-labe…

…l-for

missing label attribute "for" if not explicitly added
  • Loading branch information...
roadster31 committed Oct 12, 2017
2 parents 6ca823c + 1c8d9d6 commit 3f61082c551ccb7bcea9a96c3684fb4f322358be
Showing with 4 additions and 0 deletions.
  1. +4 −0 templates/backOffice/default/forms/standard/form-field-renderer.html
@@ -13,6 +13,10 @@
{* Get standard fields attributes *}
{capture assign=attributes}{include file="forms/$field_template/form-field-attributes-renderer.html"}{/capture}
{* see form-field-attributes-renderer.html *}
{if empty({$label_attr.for})}
{$label_attr.for = "{$form->getName()}-id-{$field_name}"}
{/if}
{*
Use the optionnal $field_value parameter if no value is defined

0 comments on commit 3f61082

Please sign in to comment.