From b1d5b871ab3054a4b43800befcd5377f3757c58c Mon Sep 17 00:00:00 2001 From: Matthias Nagel Date: Tue, 25 Nov 2025 22:21:28 +0100 Subject: [PATCH] Ein und ausklappen der events --- dashboard/templates/dashboard/dashboard.html | 9 ++++++--- templates/base.html | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dashboard/templates/dashboard/dashboard.html b/dashboard/templates/dashboard/dashboard.html index d6024c6..d0895f5 100644 --- a/dashboard/templates/dashboard/dashboard.html +++ b/dashboard/templates/dashboard/dashboard.html @@ -17,8 +17,8 @@ {% endif %} - -

Your Events

+
+

Your Events ( {{ events_with_participation|length}} Events )

{% if events_with_participation %}
{% for item in events_with_participation %} @@ -100,12 +100,14 @@ {% else %}

No events found for you.

{% endif %} +
{% if children_events %}

Your Children's Events

{% for child_data in children_events %} -

{{ child_data.child.first_name }}'s Events

+
+

{{ child_data.child.first_name }}'s Events ( {{ child_data.events|length}} Events )

{% if child_data.events %}
{% for item in child_data.events %} @@ -146,6 +148,7 @@ {% else %}

No events found for {{ child_data.child.first_name }}.

{% endif %} +
{% endfor %} {% endif %} {% endblock %} diff --git a/templates/base.html b/templates/base.html index a5ecfd7..38f7a7d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -23,6 +23,9 @@ width: 50px; /* Adjust as needed */ text-align: center; } + h4 { + display: inline-block; + }