File tree 1 file changed +12
-10
lines changed
src/Symfony/Bridge/Twig/Resources/views/Form
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 280
280
281
281
{{ widget | raw }}
282
282
<label {% with { attr : label_attr } %}{{ block (' attributes' ) }}{% endwith %}>
283
- {%- if translation_domain is same as (false ) -%}
284
- {%- if label_html is same as (false ) -%}
285
- {{- label -}}
286
- {%- else -%}
287
- {{- label | raw -}}
288
- {%- endif -%}
289
- {%- else -%}
290
- {%- if label_html is same as (false ) -%}
291
- {{- label | trans(label_translation_parameters , translation_domain ) -}}
283
+ {%- if label is not same as (false ) -%}
284
+ {%- if translation_domain is same as (false ) -%}
285
+ {%- if label_html is same as (false ) -%}
286
+ {{- label -}}
287
+ {%- else -%}
288
+ {{- label | raw -}}
289
+ {%- endif -%}
292
290
{%- else -%}
293
- {{- label | trans(label_translation_parameters , translation_domain )| raw -}}
291
+ {%- if label_html is same as (false ) -%}
292
+ {{- label | trans(label_translation_parameters , translation_domain ) -}}
293
+ {%- else -%}
294
+ {{- label | trans(label_translation_parameters , translation_domain )| raw -}}
295
+ {%- endif -%}
294
296
{%- endif -%}
295
297
{%- endif -%}
296
298
{{- form_errors(form ) -}}
You can’t perform that action at this time.
0 commit comments