Skip to content

Commit

Permalink
Update src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.h…
Browse files Browse the repository at this point in the history
…tml.twig

Fixed formatting & translation ..
  • Loading branch information
BenjaminBeck committed Sep 3, 2012
1 parent 07a111e commit 9a06f29
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,12 @@
{% set label_attr = label_attr|merge({'class': (label_attr.class|default('') ~ ' required')|trim}) %}
{% endif %}
{% if label is not sameas(false) %}
{% if label is empty %}
{% set label = name|humanize %}
{% endif %}
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>{{ label }}</label>
{% endif %}
{% endspaceless %}
{% if label is empty %}
{% set label = name|humanize %}
{% endif %}
<label{% for attrname, attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>{{ label|trans({}, translation_domain) }}</label>
{% endif %}
{% endspaceless %}
{% endblock form_label %}

{# Rows #}
Expand Down

0 comments on commit 9a06f29

Please sign in to comment.