File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed
src/Symfony/Bridge/Twig/Resources/views/Form Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change 286
286
{%- if parent_label_class is defined -%}
287
287
{%- set label_attr = label_attr | merge ({class : (label_attr .class |default (' ' ) ~ ' ' ~ parent_label_class )|replace ({' checkbox-inline' : ' ' , ' radio-inline' : ' ' })|trim }) -%}
288
288
{%- endif -%}
289
- {%- if label is not same as (false ) and label is empty -%}
290
- {%- if label_format is not empty -%}
291
- {%- set label = label_format | replace ({
292
- ' %name%' : name ,
293
- ' %id%' : id ,
294
- }) -%}
295
- {%- else -%}
296
- {%- set label = name | humanize -%}
297
- {%- endif -%}
298
- {%- endif -%}
299
289
300
290
{{ widget | raw }}
301
291
<label {% with { attr : label_attr } %}{{ block (' attributes' ) }}{% endwith %}>
302
292
{%- if label is not same as (false ) -%}
303
- {%- if translation_domain is same as (false ) -%}
304
- {%- if label_html is same as (false ) -%}
305
- {{- label -}}
306
- {%- else -%}
307
- {{- label | raw -}}
308
- {%- endif -%}
309
- {%- else -%}
310
- {%- if label_html is same as (false ) -%}
311
- {{- label | trans(label_translation_parameters , translation_domain ) -}}
312
- {%- else -%}
313
- {{- label | trans(label_translation_parameters , translation_domain )| raw -}}
314
- {%- endif -%}
315
- {%- endif -%}
293
+ {{- block (' form_label_content' ) -}}
316
294
{%- endif -%}
317
295
</label >
318
296
{%- endif -%}
You can’t perform that action at this time.
0 commit comments