Ein und ausklappen der events

This commit is contained in:
Matthias Nagel 2025-11-25 22:21:28 +01:00
parent 9ca8df54b6
commit b1d5b871ab
2 changed files with 9 additions and 3 deletions

View File

@ -17,8 +17,8 @@
{% endif %}
</div>
</div>
<h3>Your Events</h3>
<details>
<summary><h4>Your Events ( {{ events_with_participation|length}} Events )</h4></summary>
{% if events_with_participation %}
<div class="list-group">
{% for item in events_with_participation %}
@ -100,12 +100,14 @@
{% else %}
<p>No events found for you.</p>
{% endif %}
</details>
{% if children_events %}
<hr>
<h3>Your Children's Events</h3>
{% for child_data in children_events %}
<h4>{{ child_data.child.first_name }}'s Events</h4>
<details>
<summary><h4>{{ child_data.child.first_name }}'s Events ( {{ child_data.events|length}} Events )</h4></summary>
{% if child_data.events %}
<div class="list-group">
{% for item in child_data.events %}
@ -146,6 +148,7 @@
{% else %}
<p>No events found for {{ child_data.child.first_name }}.</p>
{% endif %}
</details>
{% endfor %}
{% endif %}
{% endblock %}

View File

@ -23,6 +23,9 @@
width: 50px; /* Adjust as needed */
text-align: center;
}
h4 {
display: inline-block;
}
</style>
</head>
<body>