{#
 # For the full copyright and license information, please view the
 # docs/licenses/LICENSE.txt file that was distributed with this source code.
 #}

<button id="{{ '%s_grid_bulk_action_%s'|format(grid.id, action.id) }}"
        class="dropdown-item js-bulk-action-submit-btn"
        type="button"
        data-form-url="{{ path(action.options.submit_route, action.options.route_params) }}"
        data-form-method="{{ action.options.submit_method }}"
        data-confirm-message="{{ action.options.confirm_message }}"
        {% if action.options.modal_options %}
        data-close-button-label="{{ action.options.modal_options.options.close_button_label|default('Close'|trans({}, 'Admin.Actions')) }}"
        data-confirm-title="{{ action.options.modal_options.options.title }}"
        data-confirm-button-class="{{ action.options.modal_options.options.confirm_button_class|default('btn-primary') }}"
        data-confirm-button-label="{{ action.options.modal_options.options.confirm_button_label|default('Confirm'|trans({}, 'Admin.Actions')) }}"
        {% endif %}
>
  {% if action.icon is not empty %}
    <i class="material-icons">{{ action.icon }}</i>
  {% endif %}
  {{ action.name }}
</button>
