Ein und ausklappen der events
This commit is contained in:
parent
9ca8df54b6
commit
b1d5b871ab
@ -17,8 +17,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<details>
|
||||||
<h3>Your Events</h3>
|
<summary><h4>Your Events ( {{ events_with_participation|length}} Events )</h4></summary>
|
||||||
{% if events_with_participation %}
|
{% if events_with_participation %}
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
{% for item in events_with_participation %}
|
{% for item in events_with_participation %}
|
||||||
@ -100,12 +100,14 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<p>No events found for you.</p>
|
<p>No events found for you.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</details>
|
||||||
|
|
||||||
{% if children_events %}
|
{% if children_events %}
|
||||||
<hr>
|
<hr>
|
||||||
<h3>Your Children's Events</h3>
|
<h3>Your Children's Events</h3>
|
||||||
{% for child_data in children_events %}
|
{% 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 %}
|
{% if child_data.events %}
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
{% for item in child_data.events %}
|
{% for item in child_data.events %}
|
||||||
@ -146,6 +148,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<p>No events found for {{ child_data.child.first_name }}.</p>
|
<p>No events found for {{ child_data.child.first_name }}.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</details>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@ -23,6 +23,9 @@
|
|||||||
width: 50px; /* Adjust as needed */
|
width: 50px; /* Adjust as needed */
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
h4 {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user