forked from Ruderverein-Donau-Linz/rowt
TASK improve structure index file
This commit is contained in:
parent
38732df6c8
commit
7950b23c49
0
templates/dynamics/popup.html.tera
Normal file
0
templates/dynamics/popup.html.tera
Normal file
0
templates/dynamics/sidebar.html.tera
Normal file
0
templates/dynamics/sidebar.html.tera
Normal file
14
templates/forms/event.html.tera
Normal file
14
templates/forms/event.html.tera
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{% import "includes/macros" as macros %}
|
||||||
|
|
||||||
|
<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='input', required=true) }}
|
||||||
|
{{ macros::input(label='Startzeit', name='planned_starting_time', type='time', required=true) }}
|
||||||
|
{{ macros::input(label='Anzahl Steuerleute', name='planned_amount_cox', type='number', required=true, min='0') }}
|
||||||
|
{{ macros::input(label='Anzahl Ruderer (ohne Steuerperson)', name='max_people', type='number', required=true, min='0') }}
|
||||||
|
{{ macros::checkbox(label='Gäste erlauben', name='max_allow_guestspeople') }}
|
||||||
|
{{ macros::input(label='Anmerkungen', name='notes', type='input') }}
|
||||||
|
<input value="Erstellen" class="w-full btn btn-primary" type="submit" />
|
||||||
|
</form>
|
||||||
|
</div>
|
11
templates/forms/trip.html.tera
Normal file
11
templates/forms/trip.html.tera
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{% import "includes/macros" as macros %}
|
||||||
|
|
||||||
|
<div class="hidden">
|
||||||
|
<form action="/cox/trip" method="post" class="grid gap-3" id="sidebarForm">
|
||||||
|
<input class="day-js" type="hidden" name="day" value="" />
|
||||||
|
{{ macros::input(label='Startzeit (zB "10:00")', name='planned_starting_time', type='time', required=true) }}
|
||||||
|
{{ macros::input(label='Anzahl Ruderer (ohne Steuerperson)', name='max_people', type='number', required=true, min='0') }}
|
||||||
|
{{ macros::input(label='Anmerkungen', name='notes', type='input') }}
|
||||||
|
<input value="Erstellen" class="w-full btn btn-primary" type="submit" />
|
||||||
|
</form>
|
||||||
|
</div>
|
@ -273,31 +273,7 @@
|
|||||||
<div class="sidebar-overlay" data-trigger="sidebar"></div>
|
<div class="sidebar-overlay" data-trigger="sidebar"></div>
|
||||||
{# --- END Add Trip Sidebar --- #}
|
{# --- END Add Trip Sidebar --- #}
|
||||||
|
|
||||||
{# --- START Form Add Trip --- #}
|
{% include "forms/trip" %}
|
||||||
<div class="hidden">
|
{% include "forms/event" %}
|
||||||
<form action="/cox/trip" method="post" class="grid gap-3" id="sidebarForm">
|
|
||||||
<input class="day-js" type="hidden" name="day" value="" />
|
|
||||||
{{ macros::input(label='Startzeit (zB "10:00")', name='planned_starting_time', type='time', required=true) }}
|
|
||||||
{{ macros::input(label='Anzahl Ruderer (ohne Steuerperson)', name='max_people', type='number', required=true, min='0') }}
|
|
||||||
{{ 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='input', required=true) }}
|
|
||||||
{{ macros::input(label='Startzeit', name='planned_starting_time', type='time', required=true) }}
|
|
||||||
{{ macros::input(label='Anzahl Steuerleute', name='planned_amount_cox', type='number', required=true, min='0') }}
|
|
||||||
{{ macros::input(label='Anzahl Ruderer (ohne Steuerperson)', name='max_people', type='number', required=true, min='0') }}
|
|
||||||
{{ macros::checkbox(label='Gäste erlauben', name='max_allow_guestspeople') }}
|
|
||||||
{{ macros::input(label='Anmerkungen', name='notes', type='input') }}
|
|
||||||
<input value="Erstellen" class="w-full btn btn-primary" type="submit" />
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
{# --- END Form Add Event --- #}
|
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user