{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
{# @var action \EasyCorp\Bundle\EasyAdminBundle\Dto\ActionDto #}
{# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
<div class="dropdown dropdown-actions me-2"> <a class=" {{ action.cssClass }} dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="action-label">{{ action.label|trans|raw }}</span>
</a>
{# <a class="{{ 'dropdown-item' }} {{ action.cssClass }} dropdown-toggle" data-bs-toggle role="button" aria-haspopup="true" aria-expanded="false"#}
{# for name, value in action.htmlAttributes %}{{ name }}="{{ (value.trans is defined ? value|trans : value)|e('html_attr') }}" {% endfor #}
{%- if action.icon %}
<i class="action-icon {{ action.icon }}"></i>
{% endif -%}
</a>
<div class="dropdown-menu dropdown-menu-right">
{% for name, value in action.translationParameters %}
<form action="{{value|raw}}" method="POST" class="me-2">
<button class="action-{{ name }} btn btn-link" data-action-name="{{ name }}">
<span class="btn-label"><span class="action-label">{{ name }}</span></span>
</button>
</form>
{% endfor %}
</div></div>