File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 222222 ' %name%' : name ,
223223 ' %id%' : id ,
224224 }) %}
225- {%- elseif label is same as (false ) -%}
226- {% set translation_domain = false %}
227- {%- else -%}
225+ {%- elseif label is not same as (false ) -%}
228226 {% set label = name | humanize %}
229227 {%- endif -%}
230228 {%- 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 >
232230{%- endblock button_widget -%}
233231
234232{%- block submit_widget -%}
You can’t perform that action at this time.
0 commit comments