- {{ rower.name }}
+ {{ rower.name }}{% if rower.is_newbie %} 🐣{% endif %}
{% if rower.is_guest %}(Scheckbuch){% endif %}
{% if rower.is_real_guest %}
(Gast)
diff --git a/templates/planned.html.tera b/templates/planned.html.tera
index 2719ce0..19663f1 100644
--- a/templates/planned.html.tera
+++ b/templates/planned.html.tera
@@ -55,6 +55,18 @@
{% endif %}
+ {% if "Vereinsneuling" in loggedin_user.roles %}
+
{# --- START Row Buttons --- #}
{% set_global cur_user_participates = false %}
@@ -223,6 +235,9 @@
{{ macros::box(participants=event.rower, empty_seats=event.max_people - amount_cur_rower, bg='primary-100', color='black', trip_details_id=event.trip_details_id, allow_removing="manage_events" in loggedin_user.roles) }}
{% endif %}
{# --- END List Rowers --- #}
+ {% if event.allow_guests %}
+
Neulinge willkommen
+ {% endif %}
{% if "manage_events" in loggedin_user.roles %}
{{ macros::input(label='Gast', class="input rounded-t", name='user_note', type='text', required=true) }}
@@ -231,9 +246,6 @@
type="submit" />
{% endif %}
- {% if event.allow_guests %}
-
Gäste willkommen!
- {% endif %}
{% if "manage_events" in loggedin_user.roles %}
{# --- START Edit Form --- #}
@@ -250,6 +262,7 @@
{{ macros::input(label='Anzahl Steuerleute', name='planned_amount_cox', type='number', value=event.planned_amount_cox, required=true, min='0') }}
{{ macros::checkbox(label='Immer anzeigen', name='always_show', id=event.id,checked=event.always_show) }}
{{ macros::checkbox(label='Gesperrt', name='is_locked', id=event.id,checked=event.is_locked) }}
+ {{ macros::checkbox(label='Neulinge willkommen', name='allow_guests', id=event.id,checked=event.allow_guests) }}
{{ macros::select(label='Typ', name='trip_type', data=trip_types, default='Reguläre Ausfahrt', selected_id=event.trip_type_id) }}
{{ macros::input(label='Anmerkungen', name='notes', type='input', value=event.notes) }}
@@ -281,6 +294,7 @@
{{ macros::input(label='', name='always_show', type='hidden', value=event.always_show) }}
{{ macros::input(label='', name='is_locked', type='hidden', value=event.is_locked) }}
{{ macros::input(label='', name='trip_type', type='hidden', value=event.trip_type_id) }}
+ {{ macros::input(label='', name='allow_guests', type='hidden', value=event.allow_guests) }}
@@ -363,6 +377,9 @@
{% else %}
{% set amount_cur_rower = trip.rower | length %}
{{ macros::box(participants=trip.rower, empty_seats=trip.max_people - amount_cur_rower, bg='primary-100', color='black', trip_details_id=trip.trip_details_id, allow_removing=loggedin_user.id == trip.cox_id) }}
+ {% if trip.allow_guests %}
+
Neulinge willkommen
+ {% endif %}
{% if trip.cox_id == loggedin_user.id %}
{{ macros::input(label='Gast', class="input rounded-t", name='user_note', type='text', required=true) }}
@@ -380,6 +397,7 @@
{{ macros::input(label='Anzahl Ruderer', name='max_people', type='number', required=true, value=trip.max_people, min=trip.rower | length) }}
{{ macros::input(label='Anmerkungen', name='notes', type='input', value=trip.notes) }}
{{ macros::checkbox(label='Gesperrt', name='is_locked', id=trip.id,checked=trip.is_locked) }}
+ {{ macros::checkbox(label='Neulinge willkommen', name='allow_guests', id=trip.id,checked=trip.allow_guests) }}
{% if loggedin_user.allowed_to_steer %}
{{ macros::select(label='Typ', name='trip_type', data=trip_types, default='Reguläre Ausfahrt', selected_id=trip.trip_type_id, only_ergo=not loggedin_user.allowed_to_steer) }}
{% else %}
@@ -407,6 +425,7 @@
{{ macros::input(label='Grund der Absage', name='notes', type='input', value='') }}
{{ macros::input(label='', name='is_locked', type='hidden', value=trip.is_locked) }}
{{ macros::input(label='', name='trip_type', type='hidden', value=trip.trip_type_id) }}
+ {{ macros::input(label='', name='allow_guests', type='hidden', value=trip.allow_guests) }}