Feat: Refactor assignment filter to modal
This commit is contained in:
@@ -3,11 +3,23 @@
|
||||
{% block title %}Einsatzübersicht{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-2xl font-bold pb-4">
|
||||
Einsatzübersicht
|
||||
</h1>
|
||||
|
||||
{% include '_partials/_filterpanel.html.twig' %}
|
||||
<div class="flex items-start justify-between">
|
||||
<h1 class="text-2xl font-bold pb-4">
|
||||
Einsatzübersicht
|
||||
</h1>
|
||||
<button type="button"
|
||||
class="{{ html_classes('btn btn--small', { 'btn--secondary': filterDto.active }) }}"
|
||||
{{ stimulus_controller('modal-button', [], [], {'ajax-modal': '#ajax-modal'}) }}
|
||||
{{ stimulus_action('modal-button', 'ajax', null, {
|
||||
'title': 'Einsätze filtern',
|
||||
'url': path('app_common_assignment_filter', { 'r': return_url() })
|
||||
}) }}>
|
||||
<div class="flex items-center space-x-1">
|
||||
{{ icon('filter', 'w-5 h-5 shrink-0') }}
|
||||
{% if filterDto.active %}<span>{{ filterDto.activeFiltersCount }} Filter aktiv</span>{% endif %}
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="data-table-wrapper">
|
||||
<div class="data-table-wrapper__inner">
|
||||
|
||||
Reference in New Issue
Block a user