<div class="table-bar mb-4">
<div class="row">
<div class="col-4">
<h4>{{ count }} {{ entityName }}</h4>
</div>
<div class="col-8 text-end">
{% block other_button_before %}{% endblock %}
{% if buttons is defined %}
{% for button in buttons %}
{% if button.display %}
<a href="{{ button.url }}" class="{{ button.class }}">
{% if button.icon is defined %}
<i class="{{ button.icon }}"></i>
{% endif %}
{{ button.label }}
</a>
{% endif %}
{% endfor %}
{% endif %}
{% if showExportButtons is defined and showExportButtons == true and is_granted('ROLE_EXPORT') %}
<button
class="btn btn-sm btn-primary"
data-controller="export"
data-export-url-value="{{ path('advanced_export', {entity: entity, type: 'excel'}) }}"
>
<i class="fa-solid fa-download"></i> Export Excel
</button>
<button
class="btn btn-sm btn-primary"
data-controller="export"
data-export-url-value="{{ path('advanced_export', {entity: entity, type: 'csv'}) }}"
>
<i class="fa-solid fa-download"></i> Export CSV
</button>
<div
class="modal fade"
id="loadingModal"
tabindex="-1"
aria-labelledby="loadingModalLabel"
aria-hidden="true"
data-bs-backdrop="static"
data-bs-keyboard="false"
>
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header d-none">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<h4 class="text-center">Génération du fichier en cours</h4>
<div class="text-center mt-4"><i class="fas fa-circle-notch fa-spin fa-4x"></i></div>
</div>
</div>
</div>
</div>
{% endif %}
{% block other_button_after %}{% endblock %}
</div>
</div>
</div>