<div class="d-flex align-items-center group-actions custom-dropdown-wrap">
  {% if groupActions is not empty %}
    <div class="dropdown">
      <button class="dropdown-toggle" type="button" data-bs-toggle="dropdown">
        {{ 'entity.list.group_actions'|trans({}, 'aa_admin') }}
      </button>
      <div class="dropdown-menu">
        {% for action in groupActions %}
          <a
              href="#"
              class="dropdown-item group-actions-item {{ action.classes }}"
              data-action="{{ path(app.request.get('_route'), { entitySlug: app.request.get('entitySlug'), action: action.action }) }}"
              {% if action.extra.prevent_content is defined and action.extra.prevent_content is not empty %}
                data-prevent-content="{{ action.extra.prevent_content }}"
              {% else %}
                data-prevent-content="Vous êtes sur le point de confirmer un processus groupé qui peut avoir des conséquences. Êtes-vous sûr de vouloir continuer ?"
              {% endif %}
          >
            {% if action.icon is not empty %}
              <span class="icon text-black-50">
                      <i class="{{ action.icon }}"></i>
                    </span>
            {% endif %}
            <span class="text">{% if action.name is defined %}{{ action.name }}{% else %}Name missing{% endif %}</span>
          </a>
        {% endfor %}
      </div>
    </div>
    <span
        class="group_actions_selected"
        data-text-singular="{{ 'entity.list.group_actions_selected_item'|trans({}, 'aa_admin') }}"
        data-text-plural="{{ 'entity.list.group_actions_selected_items'|trans({}, 'aa_admin') }}"
    >
        {{ 'entity.list.group_actions_selected_item'|trans({ '%itemsCount%': '0' }, 'aa_admin') }}
      </span>
  {% endif %}
</div>