File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/Symfony/Bridge/Twig/Resources/views/Form Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 222
222
' %name%' : name ,
223
223
' %id%' : id ,
224
224
}) %}
225
- {%- elseif label is same as (false ) -%}
226
- {% set translation_domain = false %}
227
- {%- else -%}
225
+ {%- elseif label is not same as (false ) -%}
228
226
{% set label = name | humanize %}
229
227
{%- endif -%}
230
228
{%- endif -%}
231
- <button type =" {{ type | default (' button' ) }}" {{ block (' button_attributes' ) }}>{{ translation_domain is same as (false ) ? label : label | trans({}, translation_domain ) }}</button >
229
+ <button type =" {{ type | default (' button' ) }}" {{ block (' button_attributes' ) }}>{{ translation_domain is same as (false ) or label is same as ( false ) ? label : label | trans({}, translation_domain ) }}</button >
232
230
{%- endblock button_widget -%}
233
231
234
232
{%- block submit_widget -%}
You can’t perform that action at this time.
0 commit comments