fix: build form properly based on current user's role

This commit is contained in:
Björn Fromme
2024-03-01 12:39:01 +01:00
parent c316217a62
commit 92fcada1da
3 changed files with 7 additions and 7 deletions
@@ -5,7 +5,7 @@
{% block content %}
{{ form_start(filterForm, { 'attr': { 'hx-post': app.request.uri, 'hx-target': '#htmx-modal', 'hx-swap': 'outerHTML' } }) }}
<div class="flex flex-col space-y-2 pb-4">
{% if form.status is defined %}
{% if filterForm.status is defined %}
{{ form_row(filterForm.status) }}
{% endif %}
{{ form_row(filterForm.dateFrom) }}