File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed
Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change 286286 {%- if parent_label_class is defined -%}
287287 {%- set label_attr = label_attr | merge ({class : (label_attr .class |default (' ' ) ~ ' ' ~ parent_label_class )|replace ({' checkbox-inline' : ' ' , ' radio-inline' : ' ' })|trim }) -%}
288288 {%- 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 -%}
299289
300290 {{ widget | raw }}
301291 <label {% with { attr : label_attr } %}{{ block (' attributes' ) }}{% endwith %}>
302292 {%- 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' ) -}}
316294 {%- endif -%}
317295 </label >
318296 {%- endif -%}
You can’t perform that action at this time.
0 commit comments