From 99c615c400800a59d5779d1911b2e4e9a0251b1a Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 24 Jan 2024 18:12:22 +0100 Subject: [PATCH] fix edit/delete trip --- templates/planned.html.tera | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/planned.html.tera b/templates/planned.html.tera index ddc2293..2a0aefd 100644 --- a/templates/planned.html.tera +++ b/templates/planned.html.tera @@ -157,11 +157,11 @@ {# --- START List Rowers --- #} {% if planned_event.max_people > 0 %} {% set amount_cur_rower = planned_event.rower | length %} - {{ macros::box(participants=planned_event.rower, empty_seats=planned_event.max_people - amount_cur_rower, bg='primary-100', color='black', trip_details_id=planned_event.trip_details_id, allow_removing="admin" in loggedin_user.roles) }} + {{ macros::box(participants=planned_event.rower, empty_seats=planned_event.max_people - amount_cur_rower, bg='primary-100', color='black', trip_details_id=planned_event.trip_details_id, allow_removing="planned_event" in loggedin_user.roles) }} {% endif %} {# --- END List Rowers --- #} - {% if "admin" in loggedin_user.roles %} + {% if "planned_event" in loggedin_user.roles %}
{{ macros::input(label='Gast', class="input rounded-t", name='user_note', type='text', required=true) }} @@ -173,7 +173,7 @@
Gäste willkommen!
{% endif %} - {% if "admin" in loggedin_user.roles %} + {% if "planned_event" in loggedin_user.roles %} {# --- START Edit Form --- #}