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

{% block content %}
<h2>Zahlung löschen?</h2>

<p>
    Willst du wirklich diese Zahlung löschen?
</p>

<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:delete_payment' payment.id %}" class="confirm-actions">
    {% csrf_token %}
    <button type="submit" class="btn-danger">Ja, löschen</button>
    <a href="{% url 'suff:pay' %}" class="btn-secondary">Nein, zurück</a>
</form>
{% endblock %}
