From 60212ad62a97cab9c83e26fb897f86388484651a Mon Sep 17 00:00:00 2001 From: Midgard Date: Wed, 22 Jul 2020 17:34:14 +0200 Subject: [PATCH] No button if not logged in --- events/templates/events/registrations.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/events/templates/events/registrations.html b/events/templates/events/registrations.html index 49a777e..1b45df8 100644 --- a/events/templates/events/registrations.html +++ b/events/templates/events/registrations.html @@ -6,9 +6,13 @@

{{ event.count_interested }} in wachtlijst

{% endif %} - {% if not my_registration %} -

+ {% if user.is_authenticated %} + {% if not my_registration %} +

+ {% else %} +

Mijn status: {{ my_registration.state_str }}

+ {% endif %} {% else %} -

Mijn status: {{ my_registration.state_str }}

+

Je moet inloggen voor je je kan inschrijven

{% endif %}