[BUGFIX] hide forms if not used

This commit is contained in:
Marie Birner 2023-04-07 11:39:23 +02:00
parent 9303d5ce3d
commit 3b04cdc5ca

View File

@ -235,6 +235,7 @@
{# --- END Add Trip Sidebar --- #}
{# --- START Form Add Trip --- #}
<div class="hidden">
<form action="/cox/trip" method="post" class="grid gap-3" id="addTripForm">
<input class="day-js" type="hidden" name="day" value="" />
{{ macros::input(label='Startzeit', name='planned_starting_time', type='input', required=true) }}
@ -242,9 +243,11 @@
{{ macros::input(label='Anmerkungen', name='notes', type='input') }}
<input value="Erstellen" class="w-full btn btn-primary" type="submit" />
</form>
</div>
{# --- END Form Add Trip --- #}
{# --- START Form Add Event --- #}
<div class="hidden">
<form action="/admin/planned-event" method="post" class="grid gap-3" id="addEventForm">
<input class="day-js" type="hidden" name="day" value="" />
{{ macros::input(label='Titel (z.B. Firmenrudern)', name='name', type='text', required=true) }}
@ -255,6 +258,7 @@
{{ macros::input(label='Anmerkungen', name='notes', type='text') }}
<input value="Erstellen" class="w-full btn btn-primary" type="submit" />
</form>
</div>
{# --- END Form Add Event --- #}
{% endblock content %}