Permalink
Browse files

missing label attribue for if not explicitly added

(but ID exist on input)
  • Loading branch information...
InformatiqueProg committed Oct 12, 2017
1 parent 6ca823c commit 1c8d9d6c6de8a59af26e7b5bb5c8c5edd4e36d72
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 1c8d9d6

Please sign in to comment.