bearbeiten Button für admin angepasst, zusage funktion auch hinzugefügt
This commit is contained in:
@@ -173,8 +173,8 @@
|
||||
|
||||
{% if can_edit %}
|
||||
|
||||
<div class="detail-actions">
|
||||
<a href="/concerts/{{ concert.id }}/edit" class="edit-button">
|
||||
<div class="detail-actions" aria-label="Konzert verwalten">
|
||||
<a href="/concerts/{{ concert.id }}/edit" class="concert-action concert-action-edit">
|
||||
✏️ Konzert bearbeiten
|
||||
</a>
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
action="/concerts/{{ concert.id }}/delete"
|
||||
onsubmit="return confirm('Dieses Konzert wirklich löschen?');"
|
||||
>
|
||||
<button type="submit" class="delete-concert-button">
|
||||
<button type="submit" class="concert-action concert-action-delete">
|
||||
🗑️ Konzert löschen
|
||||
</button>
|
||||
</form>
|
||||
@@ -196,16 +196,67 @@
|
||||
{% endif %}
|
||||
|
||||
|
||||
<section class="coming-soon">
|
||||
<section class="attendance-section" id="attendance">
|
||||
|
||||
<h2>
|
||||
🐧 Community
|
||||
🐧 Wer ist dabei?
|
||||
</h2>
|
||||
|
||||
<p>
|
||||
Wer geht hin, wer ist interessiert?
|
||||
Kommentare und Teilnehmer folgen hier.
|
||||
</p>
|
||||
<p>Wähle, wie es bei dir aussieht. Deine Auswahl kann jederzeit geändert werden.</p>
|
||||
|
||||
<div class="attendance-actions">
|
||||
|
||||
<form method="post" action="/concerts/{{ concert.id }}/attendance">
|
||||
<input type="hidden" name="status" value="attending">
|
||||
<button
|
||||
type="submit"
|
||||
class="attendance-option {% if current_attendance == 'attending' %}is-selected{% endif %}"
|
||||
>
|
||||
✓ Zugesagt
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<form method="post" action="/concerts/{{ concert.id }}/attendance">
|
||||
<input type="hidden" name="status" value="maybe">
|
||||
<button
|
||||
type="submit"
|
||||
class="attendance-option {% if current_attendance == 'maybe' %}is-selected{% endif %}"
|
||||
>
|
||||
? Vielleicht
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<form method="post" action="/concerts/{{ concert.id }}/attendance">
|
||||
<input type="hidden" name="status" value="ticket_search">
|
||||
<button
|
||||
type="submit"
|
||||
class="attendance-option {% if current_attendance == 'ticket_search' %}is-selected{% endif %}"
|
||||
>
|
||||
🎟️ Suche Ticket
|
||||
</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<details class="attendance-list">
|
||||
<summary>
|
||||
{{ attending_count }} Zusage{% if attending_count != 1 %}n{% endif %} anzeigen
|
||||
</summary>
|
||||
|
||||
{% if attending_users %}
|
||||
|
||||
<ul>
|
||||
{% for attendee in attending_users %}
|
||||
<li>{{ attendee.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% else %}
|
||||
|
||||
<p>Noch niemand hat zugesagt.</p>
|
||||
|
||||
{% endif %}
|
||||
</details>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user