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
This commit is contained in:
commit
02f66e2ff5
@ -65,6 +65,17 @@ col-sm-2
|
|||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
{% endblock submit_row %}
|
{% endblock submit_row %}
|
||||||
|
|
||||||
|
{% block reset_row -%}
|
||||||
|
{% spaceless %}
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="{{ block('form_label_class') }}"></div>
|
||||||
|
<div class="{{ block('form_group_class') }}">
|
||||||
|
{{ form_widget(form) }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endspaceless %}
|
||||||
|
{% endblock reset_row %}
|
||||||
|
|
||||||
{% block form_group_class -%}
|
{% block form_group_class -%}
|
||||||
col-sm-10
|
col-sm-10
|
||||||
{%- endblock form_group_class %}
|
{%- endblock form_group_class %}
|
||||||
|
Reference in New Issue
Block a user