Skip to content

Commit

Permalink
[SonataExtraBundle] Show action support classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoiriert committed Dec 20, 2023
1 parent 65d97e8 commit b318e5d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% else %}
{% set href = action.href %}
{% endif %}
<a href="{{ href }}" class="btn btn-sm btn-default">
<a href="{{ href }}" class="{{ action.attr.class|default('btn btn-sm btn-default') }}">
{% if action.icon is defined %}<i class="fa {{ action.icon }}"></i> {% endif %}
{{ (action.label|default('action_' ~ action_name))|trans({}, admin.translationDomain) }}
</a>
Expand Down

0 comments on commit b318e5d

Please sign in to comment.