feat: admin list filtering and search
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
|
||||
{% block content %}
|
||||
<twig:page:heading>Buchungen & Anfragen</twig:page:heading>
|
||||
{{ include('_partials/_list_filter_bar.html.twig', {
|
||||
'filter': filter,
|
||||
'form': filter_form,
|
||||
'route': 'app_admin_accommodationbooking',
|
||||
'modal_route': 'app_admin_accommodationbooking_filter',
|
||||
}) }}
|
||||
<div class="data-table-wrapper">
|
||||
<div class="data-table-wrapper__inner text-sm">
|
||||
<table class="data-table">
|
||||
@@ -88,8 +94,8 @@
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="8">
|
||||
Keine Daten...
|
||||
<td colspan="9">
|
||||
{{ filter.isActive ? 'Keine Treffer für diesen Filter.' : 'Keine Daten...' }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
{% extends 'admin/_modal_filter.html.twig' %}
|
||||
|
||||
{% block fields %}
|
||||
<div class="lg:col-span-2">
|
||||
{{ form_row(form.q) }}
|
||||
</div>
|
||||
{{ form_row(form.dateFrom) }}
|
||||
{{ form_row(form.dateTo) }}
|
||||
{{ form_row(form.status) }}
|
||||
{{ form_row(form.type) }}
|
||||
<div class="lg:col-span-2">
|
||||
{{ form_row(form.accommodation) }}
|
||||
</div>
|
||||
{# Both are group-admin only, but they appear independently: triage by "no assignment" works
|
||||
even before anybody holds a groups role and there is a manager to pick. #}
|
||||
{% if form.managedBy is defined %}
|
||||
<div>
|
||||
{{ form_row(form.managedBy) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if form.unassigned is defined %}
|
||||
<div class="flex items-end pb-1">
|
||||
{{ form_row(form.unassigned) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ form_rest(form) }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user