File tree 1 file changed +13
-11
lines changed
src/Symfony/Bridge/Twig/Resources/views/Form
1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 100
100
{%- endif -%}
101
101
<label {% with { attr : label_attr } %}{{ block (' attributes' ) }}{% endwith %}>
102
102
{{- widget | raw }}
103
- {%- if translation_domain is same as (false ) -%}
104
- {%- if label_html is same as (false ) -%}
105
- {{- label -}}
103
+ {%- if label is not same as (false ) -%}
104
+ {%- if translation_domain is same as (false ) -%}
105
+ {%- if label_html is same as (false ) -%}
106
+ {{- label -}}
107
+ {%- else -%}
108
+ {{- label | raw -}}
109
+ {%- endif -%}
106
110
{%- else -%}
107
- {{- label | raw -}}
111
+ {%- if label_html is same as (false ) -%}
112
+ {{- label | trans(label_translation_parameters , translation_domain ) -}}
113
+ {%- else -%}
114
+ {{- label | trans(label_translation_parameters , translation_domain )| raw -}}
115
+ {%- endif -%}
108
116
{%- endif -%}
109
- {%- else -%}
110
- {%- if label_html is same as (false ) -%}
111
- {{- label | trans(label_translation_parameters , translation_domain ) -}}
112
- {%- else -%}
113
- {{- label | trans(label_translation_parameters , translation_domain )| raw -}}
114
- {%- endif -%}
115
- {%- endif -%}
117
+ {%- endif -%}
116
118
</label >
117
119
{%- endif -%}
118
120
{%- endblock checkbox_radio_label %}
You can’t perform that action at this time.
0 commit comments