bug #13883 #13857 Added default button class (Piers Warmers)

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

Discussion
----------

#13857 Added default button class

[Bridge\Twig] Added default-btn class to Twig button block.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | n/a
| Fixed tickets | #13857
| License       | MIT
| Doc PR        | n/a

Commits
-------

c07a902 Added default button class
This commit is contained in:
Fabien Potencier 2015-03-11 16:48:24 +01:00
commit 5ad671ae2e

View File

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