File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/Symfony/Bridge/Twig/Resources/views/Form Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 70
70
{# Labels #}
71
71
72
72
{% block form_label -%}
73
- {%- if expanded is defined and expanded -%}
73
+ {%- if compound is defined and compound -%}
74
74
{%- set element = ' legend' -%}
75
75
{%- set label_attr = label_attr | merge ({class : (label_attr .class |default (' ' ) ~ ' col-form-legend' )|trim }) -%}
76
+ {%- else -%}
77
+ {%- set label_attr = label_attr | merge ({class : (label_attr .class |default (' ' ) ~ ' form-control-label' )|trim }) -%}
76
78
{%- endif -%}
77
- {%- set label_attr = label_attr | merge ({class : (label_attr .class |default (' ' ) ~ ' form-control-label' )|trim }) -%}
78
79
{{- parent () -}}
79
80
{%- endblock form_label %}
80
81
107
108
{# Rows #}
108
109
109
110
{% block form_row -%}
110
- {%- if expanded is defined and expanded -%}
111
+ {%- if compound is defined and compound -%}
111
112
{%- set element = ' fieldset' -%}
112
113
{%- endif -%}
113
114
< {{ element | default (' div' ) }} class="form-group">
You can’t perform that action at this time.
0 commit comments