From 00357e9226c8986eca7f29e6fb72b484a552c9f9 Mon Sep 17 00:00:00 2001 From: "Nicolas A. Tonne" Date: Wed, 3 Sep 2014 19:59:59 +0200 Subject: [PATCH] Display registration end date after regisration has opened --- templates/events/details.html | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/templates/events/details.html b/templates/events/details.html index af0c3a19c..371bd504c 100644 --- a/templates/events/details.html +++ b/templates/events/details.html @@ -98,13 +98,23 @@

{% endif %}
-
Påmeldingsstart
-
+ {% if attendance_event.registration_start > now %} +
Påmeldingsstart
- {{ attendance_event.registration_start|date:"H.i" }} - {{ attendance_event.registration_start|date:"d. M Y" }} +
+ {{ attendance_event.registration_start|date:"H.i" }} + {{ attendance_event.registration_start|date:"d. M Y" }} +
-
+ {% else %} +
Påmeldingsslutt
+
+
+ {{ attendance_event.registration_end|date:"H.i" }} + {{ attendance_event.registration_end|date:"d. M Y" }} +
+
+ {% endif %}