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

{% load i18n %}
{% load bootstrap3 %}

{% block content %}
<div>
    <div>
        <h3>{% trans "Edit payment" %}</h3>
    </div>

    <div>
        <form name="paymentForm" action="/members/update_payment" method="post" class="form">{% csrf_token %}
            <input type="hidden" name="id" value="{{ payment_id }}">
            {% bootstrap_form form %}
            {% buttons %}
            <button type="submit" class="btn btn-primary">
                {% trans "Save" %}
            </button>
            <a href="/members/delete_payment_confirm/{{ payment_id }}" class="btn btn-danger">{% trans "Delete" %}</a>
            {% endbuttons %}
        </form>
    </div>
</div>
{% endblock content %}
