We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de95a37 commit 368edd8Copy full SHA for 368edd8
src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig
@@ -216,12 +216,14 @@
216
{%- endblock range_widget %}
217
218
{%- block button_widget -%}
219
- {%- if label is not same as(false) and label is empty -%}
+ {%- if label is empty -%}
220
{%- if label_format is not empty -%}
221
{% set label = label_format|replace({
222
'%name%': name,
223
'%id%': id,
224
}) %}
225
+ {%- elseif label is same as(false) -%}
226
+ {% set translation_domain = false %}
227
{%- else -%}
228
{% set label = name|humanize %}
229
{%- endif -%}
0 commit comments