templates/admin/buttons/dropdownButton.html.twig line 1

Open in your IDE?
  1. {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
  2. {# @var action \EasyCorp\Bundle\EasyAdminBundle\Dto\ActionDto #}
  3. {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
  4.     <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">
  5.         <span class="action-label">{{ action.label|trans|raw }}</span>
  6.     </a>
  7.     {# <a class="{{ 'dropdown-item' }} {{ action.cssClass }} dropdown-toggle" data-bs-toggle role="button" aria-haspopup="true" aria-expanded="false"#}
  8.     {# for name, value in action.htmlAttributes %}{{ name }}="{{ (value.trans is defined ? value|trans : value)|e('html_attr') }}" {% endfor #}
  9.     {%- if action.icon %}
  10.         <i class="action-icon {{ action.icon }}"></i>
  11.     {% endif -%}
  12. </a>
  13. <div class="dropdown-menu dropdown-menu-right">
  14. {% for name, value in action.translationParameters %}
  15. <form action="{{value|raw}}" method="POST" class="me-2">
  16.                 <button class="action-{{ name }} btn btn-link" data-action-name="{{ name }}">
  17.                     <span class="btn-label"><span class="action-label">{{ name }}</span></span>
  18.                 </button>
  19.             </form>
  20.  {% endfor %}
  21. </div></div>