From a2a124d8c0bacc2946c49b687fa990e2e18fb060 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 28 Apr 2023 22:12:13 +0200 Subject: [PATCH] if clause forms add trip and add event --- templates/index.html.tera | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/templates/index.html.tera b/templates/index.html.tera index 36cb1d5..c7cfc1e 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -139,15 +139,16 @@
- {% if trip.max_people == 0 %}{% endif %}{{ trip.planned_starting_time }} Uhr - {% if trip.max_people == 0 %} - (Absage {{ trip.cox_name }}) - {% else %} - ({{ trip.cox_name }}) - {% endif %} -
+ {% if trip.max_people == 0 %} + ⚠ {{ trip.planned_starting_time }} Uhr + (Absage {{ trip.cox_name }}) + {% else %} + {{ trip.planned_starting_time }} Uhr + ({{ trip.cox_name }}) + {% endif %} +
Details @@ -251,7 +252,13 @@
{% include "dynamics/sidebar" %} -{% include "forms/trip" %} -{% include "forms/event" %} + +{% if loggedin_user.is_cox %} + {% include "forms/trip" %} +{% endif %} + +{% if loggedin_user.is_admin %} + {% include "forms/event" %} +{% endif %} {% endblock content %}