8000 also support no label · symfony/symfony@73daf6a · GitHub
[go: up one dir, main page]

Skip to content

Commit 73daf6a

Browse files
also support no label
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com>
1 parent 7423620 commit 73daf6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/foundation_5_layout.html.twig

+3-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@
269269
{% endif %}
270270
<label{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}>
271271
{{ widget|raw }}
272-
{{- block('form_label_content') -}}
272+
{%- if label is not same as(false) -%}
273+
{{- block('form_label_content') -}}
274+
{%- endif -%}
273275
</label>
274276
{%- endblock checkbox_radio_label %}
275277

0 commit comments

Comments
 (0)
0