File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed 
src/Symfony/Bridge/Twig/Resources/views/Form Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 182182
183183{#  Labels #} 
184184
185- {% block  field_label  %}
185+ {% block  generic_label  %}
186186{% spaceless  %}
187187 {% if  required  %}
188188 {% set  attr  =  attr | merge ({' class'  : attr .class |default (' '  ) ~ '  required'  }) %}
189189 {% endif  %}
190-  <label  for =" {{ id  }}"  {% for  attrname ,attrvalue  in  attr  %} {{attrname }}=" {{attrvalue }}"  {% endfor  %}>{{ label | trans }}</label >
190+  <label {% for  attrname ,attrvalue  in  attr  %} {{attrname }}=" {{attrvalue }}"  {% endfor  %}>{{ label | trans }}</label >
191+ {% endspaceless  %}
192+ {% endblock  %}
193+ 
194+ {% block  field_label  %}
195+ {% spaceless  %}
196+  {% set  attr  =  attr | merge ({' for'  : id }) %}
197+  {{ block (' generic_label'  ) }}
191198{% endspaceless  %}
192199{% endblock  field_label  %}
193200
194201{% block  form_label  %}
195202{% spaceless  %}
196-  {% if  required  %}
197-  {% set  attr  =  attr | merge ({' class'  : attr .class |default (' '  ) ~ '  required'  }) %}
198-  {% endif  %}
199-  <label  {% for  attrname ,attrvalue  in  attr  %} {{attrname }}=" {{attrvalue }}"  {% endfor  %}>{{ label | trans }}</label >
203+  {{ block (' generic_label'  ) }}
200204{% endspaceless  %}
201205{% endblock  form_label  %}
202206
                                 You can’t perform that action at this time. 
               
                  
0 commit comments