diff --git a/templates/forms/event.html.tera b/templates/forms/event.html.tera
index 72eca77..6832918 100644
--- a/templates/forms/event.html.tera
+++ b/templates/forms/event.html.tera
@@ -9,12 +9,8 @@
{{ macros::input(label='Anzahl Ruderer (ohne Steuerperson)', name='max_people', type='number', required=true, min='0') }}
{{ macros::checkbox(label='Gäste erlauben', name='allow_guests') }}
{{ macros::input(label='Anmerkungen', name='notes', type='input') }}
-
+ {{ macros::select(select_name='trip_type', trip_types=trip_types, default='Reguläre Ausfahrt') }}
+
diff --git a/templates/forms/trip.html.tera b/templates/forms/trip.html.tera
index 63a37de..af4d91b 100644
--- a/templates/forms/trip.html.tera
+++ b/templates/forms/trip.html.tera
@@ -5,14 +5,10 @@
{{ 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::checkbox(label='Gäste erlauben', name='allow_guests') }}
+ {{ macros::checkbox(label='Gäste erlauben', name='allow_guests') }}
{{ macros::input(label='Anmerkungen', name='notes', type='input') }}
-
+ {{ macros::select(select_name='trip_type', trip_types=trip_types, default='Reguläre Ausfahrt') }}
+
diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera
index 27803e4..1f1216f 100644
--- a/templates/includes/macros.html.tera
+++ b/templates/includes/macros.html.tera
@@ -37,6 +37,15 @@
{% endmacro checkbox %}
+{% macro select(trip_types, select_name='trip_type', default='') %}
+
+{% endmacro select %}
+
{% macro alert(message, type, class='') %}
{{ message }}
diff --git a/templates/index.html.tera b/templates/index.html.tera
index 50534a6..ca20de4 100644
--- a/templates/index.html.tera
+++ b/templates/index.html.tera
@@ -39,14 +39,16 @@
-
{{ planned_event.planned_starting_time }} Uhr ({{ planned_event.name }})
- {% if planned_event.trip_type %}
- Spezielles Event: {{ planned_event.trip_type.name }}
- {% endif %}
-
+
+ {{ planned_event.planned_starting_time }} Uhr
+ {% if planned_event.trip_type %}
+ {{ planned_event.trip_type.icon | safe }}{{ planned_event.trip_type.name }}
+ {% endif %}
+
+
({{ planned_event.name }})
+
Details
@@ -65,7 +67,7 @@
{% endif %}
{% if planned_event.max_people > planned_event.rower | length %}
{% if cur_user_participates == false %}
- Mitrudern
+
Mitrudern
{% endif %}
{% endif %}
{# --- END Row Buttons --- #}
@@ -84,7 +86,7 @@
Abmelden
{% else %}
-
+
{% include "includes/cox-icon" %}
Steuern
@@ -99,11 +101,11 @@
{# --- START List Coxes --- #}
{% if planned_event.planned_amount_cox > 0 %}
- {% if amount_cox_missing > 0 %}
+ {% if amount_cox_missing > 0 %}
{{ macros::box(participants=planned_event.cox, empty_seats=planned_event.planned_amount_cox - amount_cur_cox, header='Noch benötigte Steuerleute:', text='Keine Steuerleute angemeldet') }}
- {% else %}
+ {% else %}
{{ macros::box(participants=planned_event.cox, empty_seats="", header='Genügend Steuerleute haben sich angemeldet :-)', text='Keine Steuerleute angemeldet') }}
- {% endif %}
+ {% endif %}
{% endif %}
{# --- END List Coxes --- #}
@@ -143,18 +145,23 @@
{% if trip.max_people == 0 %}
-
⚠ {{ trip.planned_starting_time }} Uhr
+
⚠ {{ trip.planned_starting_time }} Uhr
+ {% if trip.trip_type %}
+ {{ trip.trip_type.icon | safe }}{{ trip.trip_type.name }}
+ {% endif %}
+
(Absage {{ trip.cox_name }})
{% else %}
-
{{ trip.planned_starting_time }} Uhr
+
{{ trip.planned_starting_time }} Uhr
+ {% if trip.trip_type %}
+ {{ trip.trip_type.icon | safe }}{{ trip.trip_type.name }}
+ {% endif %}
+
({{ trip.cox_name }})
{% endif %}
- {% if trip.trip_type %}
- Spezielles Event: {{ trip.trip_type.name }}
- {% endif %}
Details
@@ -174,7 +181,7 @@
{% endif %}
{% if trip.max_people > trip.rower | length and trip.cox_id != loggedin_user.id and cur_user_participates == false%}
Mitrudern
+ class="btn btn-primary btn-fw" {% if trip.trip_type %}onclick="return confirm('{{ trip.trip_type.question }}');"{% endif %}>Mitrudern
{% endif %}