From 6f32aa2d575663351a968d94a6448738af426fcd Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Mon, 8 Jul 2024 12:55:03 +0200
Subject: [PATCH] Add note about HnS being fully booked

---
 events.json                             |  3 ++-
 templates/shortcodes/teckids_event.html | 10 +++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/events.json b/events.json
index 04466a79..d688620c 100644
--- a/events.json
+++ b/events.json
@@ -11,6 +11,7 @@
     "description": "Große Sommerfreizeit in Bonn-Bad Godesberg mit Ausflügen zu FrOScon und Museen",
     "location": "Bonn (Jugendzeltplatz)",
     "date": "2024-08-15",
-    "cost": 150
+    "cost": 150,
+    "fully_booked": true
   }
 }
diff --git a/templates/shortcodes/teckids_event.html b/templates/shortcodes/teckids_event.html
index 4ad51b5e..06772adc 100644
--- a/templates/shortcodes/teckids_event.html
+++ b/templates/shortcodes/teckids_event.html
@@ -39,7 +39,15 @@
             eine E-Mail mit eurem Wunschbetrag. Die Gründe dafür müsst ihr nicht nennen.
           </div>
         </div>
-      {%if body %}
+      {% if event.fully_booked %}
+        <div class="message is-danger">
+          <div class="message-body">
+            Die Veranstaltung ist ausgebucht. Für weitere Anmeldungen oder Plätze auf der
+            Warteliste können uns Interessierte per E-Mail kontaktieren.
+          </div>
+        </div>
+      {% endif %}
+      {% if body %}
       <div class="content">
         {{ body|markdown|safe }}
       </div>
-- 
GitLab