minor #12439 Remove block submit_widget (ip512)

This PR was submitted for the master branch but it was merged into the 2.6 branch instead (closes #12439).

Discussion
----------

Remove block submit_widget

submit_widget parent block already renders button_widget_block. btn is already added by button_widget_block. I propose to remove this block as it adds btn twice and has no other use.

Commits
-------

9a08b77 Remove block submit_widget
This commit is contained in:
Fabien Potencier 2014-11-23 19:28:54 +01:00
commit 4838cdec58

View File

@ -14,11 +14,6 @@
{{- parent() -}}
{%- endblock textarea_widget %}
{% block submit_widget -%}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' btn')|trim}) %}
{{- parent() -}}
{%- endblock %}
{% block button_widget -%}
{% set attr = attr|merge({class: (attr.class|default('') ~ ' btn')|trim}) %}
{{- parent() -}}