rowt/templates/forms/trip.html.tera

17 lines
995 B
Plaintext
Raw Normal View History

2023-04-28 18:35:42 +02:00
{% import "includes/macros" as macros %}
<div class="hidden">
2024-03-04 13:28:42 +01:00
<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') }}
2024-04-29 21:51:27 +02:00
{{ macros::checkbox(label='Scheckbuch-Anmeldungen erlauben', name='allow_guests') }}
2024-03-04 13:28:42 +01:00
{{ macros::input(label='Anmerkungen', name='notes', type='input') }}
2024-11-25 12:12:36 +01:00
{% if loggedin_user.allowed_to_steer %}
{{ macros::select(label='Typ', data=trip_types, name='trip_type', default='Reguläre Ausfahrt') }}
{% else %}
{{ macros::select(label='Typ', data=trip_types, name='trip_type', only_ergo=true) }}
{% endif %}
2024-03-04 13:28:42 +01:00
<input value="Erstellen" class="w-full btn btn-primary" type="submit" />
</form>
2023-04-28 21:21:21 +02:00
</div>