fix: hamburger menu vertical stack, lock paid orders, order cancellation with balance refund, deduplicate admin drawer
This commit is contained in:
@@ -295,15 +295,25 @@
|
||||
{% if event.sponsor_name %}<br><small class="text-muted">von Sponsor</small>{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if event.sponsor_name %}
|
||||
<span class="badge-btn paid" style="cursor: default;">✓ Gesponsert</span>
|
||||
{% else %}
|
||||
<form action="/admin/toggle-paid/{{ order.id }}" method="POST" style="margin: 0;">
|
||||
<button type="submit" class="badge-btn {% if order.is_paid %}paid{% else %}unpaid{% endif %}">
|
||||
{% if order.is_paid %}✓ Bezahlt{% else %}⏳ Offen{% endif %}
|
||||
</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
<div style="display: flex; align-items: center; justify-content: space-between; gap: 6px;">
|
||||
{% if event.sponsor_name %}
|
||||
<span class="badge-btn paid" style="cursor: default;">✓ Gesponsert</span>
|
||||
{% else %}
|
||||
<form action="/admin/toggle-paid/{{ order.id }}" method="POST" style="margin: 0;">
|
||||
<button type="submit" class="badge-btn {% if order.is_paid %}paid{% else %}unpaid{% endif %}" title="Klick um Bezahlstatus umzuschalten (Guthaben wird automatisch erstattet)">
|
||||
{% if order.is_paid %}
|
||||
{% if order.payment_method == 'balance' %}✓ Guthaben{% else %}✓ Bezahlt{% endif %}
|
||||
{% else %}
|
||||
⏳ Offen
|
||||
{% endif %}
|
||||
</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
<form action="/admin/orders/{{ order.id }}/delete" method="POST" style="margin: 0;" onsubmit="return confirm('Bestellung für {{ order.display_name|escape }} wirklich stornieren? Bereits bezahltes Guthaben wird sofort erstattet.');">
|
||||
<button type="submit" class="btn-revoke-small" title="Bestellung stornieren / löschen" style="padding: 2px 6px; font-size: 0.8rem;">🗑️</button>
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user