8000 bug #17418 Fixed Bootstrap form theme form "reset" buttons (javieregu… · symfony/symfony@02f66e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 02f66e2

Browse files
committed
bug #17418 Fixed Bootstrap form theme form "reset" buttons (javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Fixed Bootstrap form theme form "reset" buttons | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #14290 | License | MIT | Doc PR | - All the credit for this solution goes to @AntonioAmore, who reported the error originally and provided a solution. I only confirmed the bug and verified the proposed solution. Commits ------- 67c7f05 Fixed Bootstrap form theme form "reset" buttons
2 parents 18604e2 + 67c7f05 commit 02f66e2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_horizontal_layout.html.twig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ col-sm-2
6565
{% endspaceless %}
6666
{% endblock submit_row %}
6767

68+
{% block reset_row -%}
69+
{% spaceless %}
70+
<div class="form-group">
71+
<div class="{{ block('form_label_class') }}"></div>
72+
<div class="{{ block('form_group_class') }}">
73+
{{ form_widget(form) }}
74+
</div>
75+
</div>
76+
{% endspaceless %}
77+
{% endblock reset_row %}
78+
6879
{% block form_group_class -%}
6980
col-sm-10
7081
{%- endblock form_group_class %}

0 commit comments

Comments
 (0)
0