Skip to content

Commit e274107

Browse files
Nefastnicolas-grekas
authored andcommitted
Change button_widget class to btn-primary
1 parent 8a852d5 commit e274107

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Resources/views/Form/bootstrap_4_layout.html.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@
137137
{{- parent() -}}
138138
{%- endblock button_widget %}
139139

140+
{% block submit_widget -%}
141+
{%- set attr = attr|merge({class: (attr.class|default('btn-primary'))|trim}) -%}
142+
{{- parent() -}}
143+
{%- endblock submit_widget %}
144+
140145
{% block checkbox_widget -%}
141146
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
142147
{%- if 'checkbox-custom' in parent_label_class -%}

0 commit comments

Comments
 (0)