Skip to content

Commit 8444f07

Browse files
Merge branch '3.4' into 4.1
* 3.4: Change button_widget class to btn-primary [Dotenv] dont use getenv() to read SYMFONY_DOTENV_VARS [HttpFoundation] Fixed PHP doc of ParameterBag::getBoolean [HttpFoundation] replace any preexisting Content-Type headers
2 parents 7af4d9e + e274107 commit 8444f07

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
@@ -149,6 +149,11 @@
149149
{{- parent() -}}
150150
{%- endblock button_widget %}
151151

152+
{% block submit_widget -%}
153+
{%- set attr = attr|merge({class: (attr.class|default('btn-primary'))|trim}) -%}
154+
{{- parent() -}}
155+
{%- endblock submit_widget %}
156+
152157
{% block checkbox_widget -%}
153158
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
154159
{%- if 'checkbox-custom' in parent_label_class -%}

0 commit comments

Comments
 (0)