kommentarfunktion und nächster admin button fix

This commit is contained in:
kai
2026-08-25 13:00:45 +02:00
parent 310e0db080
commit 60d8c941de
3 changed files with 177 additions and 23 deletions
+70 -10
View File
@@ -240,26 +240,86 @@
<details class="attendance-list">
<summary>
{{ attending_count }} Zusage{% if attending_count != 1 %}n{% endif %} anzeigen
{{ attending_count }} Zusage{% if attending_count != 1 %}n{% endif %}
· {{ ticket_seeker_count }} sucht Ticket
</summary>
{% if attending_users %}
<div class="attendance-groups">
<ul>
{% for attendee in attending_users %}
<li>{{ attendee.name }}</li>
{% endfor %}
</ul>
<div>
<h3>✓ Zugesagt</h3>
{% else %}
{% if attending_users %}
<ul>
{% for attendee in attending_users %}
<li>{{ attendee.name }}</li>
{% endfor %}
</ul>
{% else %}
<p>Noch niemand hat zugesagt.</p>
{% endif %}
</div>
<p>Noch niemand hat zugesagt.</p>
<div>
<h3>🎟️ Sucht ein Ticket</h3>
{% endif %}
{% if ticket_seekers %}
<ul>
{% for seeker in ticket_seekers %}
<li>{{ seeker.name }}</li>
{% endfor %}
</ul>
{% else %}
<p>Aktuell sucht niemand ein Ticket.</p>
{% endif %}
</div>
</div>
</details>
</section>
<section class="comments-section" id="comments">
<h2>💬 Kommentare</h2>
<form method="post" action="/concerts/{{ concert.id }}/comments" class="comment-form">
<label for="comment-body">Mit anderen Konzertbesuchern austauschen</label>
<textarea
id="comment-body"
name="body"
rows="4"
maxlength="2000"
required
placeholder="Schreib einen Kommentar …"
></textarea>
<button type="submit" class="attendance-option comment-submit">
Kommentar senden
</button>
</form>
{% if comments %}
<div class="comment-list">
{% for comment in comments %}
<article class="comment">
<div class="comment-meta">
<strong>{{ comment.author }}</strong>
<span>{{ comment.created_at }}</span>
</div>
<p>{{ comment.body }}</p>
</article>
{% endfor %}
</div>
{% else %}
<p class="comments-empty">Noch keine Kommentare. Mach den Anfang!</p>
{% endif %}
</section>
</div>
</article>