diff --git a/README.md b/README.md index 36e8697..2de5be1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # TODO - [ ] Allow sign-outs only >2h before event +# Icons +- Regatta: 🏅 +- Lange Ausfahrt: 💪 +- Wanderfahrt: ⛱ + # Notes / Bugfixes - [] delete flag user administration - [] max_people = 0 -> Rot hervorheben, dass Ausfahrt abgesagt wurde? diff --git a/templates/dynamics/popup.html.tera b/templates/dynamics/popup.html.tera new file mode 100644 index 0000000..e69de29 diff --git a/templates/dynamics/sidebar.html.tera b/templates/dynamics/sidebar.html.tera new file mode 100644 index 0000000..ce2341a --- /dev/null +++ b/templates/dynamics/sidebar.html.tera @@ -0,0 +1,17 @@ + + \ No newline at end of file diff --git a/templates/forms/event.html.tera b/templates/forms/event.html.tera new file mode 100644 index 0000000..8c80a83 --- /dev/null +++ b/templates/forms/event.html.tera @@ -0,0 +1,14 @@ +{% import "includes/macros" as macros %} + + \ No newline at end of file diff --git a/templates/forms/trip.html.tera b/templates/forms/trip.html.tera new file mode 100644 index 0000000..ae6e1d2 --- /dev/null +++ b/templates/forms/trip.html.tera @@ -0,0 +1,11 @@ +{% import "includes/macros" as macros %} + + \ No newline at end of file diff --git a/templates/includes/buttons.html.tera b/templates/includes/buttons.html.tera new file mode 100644 index 0000000..09734f4 --- /dev/null +++ b/templates/includes/buttons.html.tera @@ -0,0 +1,16 @@ +{% if loggedin_user.is_cox %} +
+ + + +
+{% endif %} \ No newline at end of file diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera index 80d1413..c03055f 100644 --- a/templates/includes/macros.html.tera +++ b/templates/includes/macros.html.tera @@ -46,7 +46,7 @@
{% if participants | length > 0 %} {% for rower in participants %} - {{ rower.name }}
+ {{ rower.name }} {% if rower.is_guest %} (Gast) {% endif %}
{% endfor %} {% else %} {{ text }} diff --git a/templates/index.html.tera b/templates/index.html.tera index 5d13103..93a5bac 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -10,22 +10,7 @@

Ausfahrten

- {% if loggedin_user.is_cox %} -
- - - -
- {% endif %} + {% include "includes/buttons" %} {% for day in days %} {% set amount_trips = day.planned_events | length + day.trips | length %} @@ -253,51 +238,8 @@
-{# --- START Add Trip Sidebar --- #} - - -{# --- END Add Trip Sidebar --- #} - -{# --- START Form Add Trip --- #} - -{# --- END Form Add Trip --- #} - -{# --- START Form Add Event --- #} - -{# --- END Form Add Event --- #} +{% include "dynamics/sidebar" %} +{% include "forms/trip" %} +{% include "forms/event" %} {% endblock content %}