{% extends "suff/base.html" %}

{% block content %}
<p class="muted">Crew-Ansicht</p>
<h2>Zahlung löschen für <span class="staff-target">{{ tab_user.username }}</span>?</h2>

<section class="total-box">
    <span class="total-label">{{ payment.get_method_display }}{% if payment.note %} – {{ payment.note }}{% endif %}</span>
    <span class="total-value">{{ payment.amount|floatformat:2 }} €</span>
    <span class="total-label">{{ payment.created_at|date:"d.m. H:i" }}</span>
</section>

<form method="post" action="{% url 'suff:staff_delete_payment' tab_user.username payment.id %}" class="confirm-actions">
    {% csrf_token %}
    <button type="submit" class="btn-danger">Ja, löschen</button>
    <a href="{% url 'suff:staff_pay' tab_user.username %}" class="btn-secondary">Nein, zurück</a>
</form>
{% endblock %}
