{% extends "pinax/stripe/base.html" %}


{% load bootstrap %}

{% block body_class %}{{ block.super }} pinax-stripe-payment-methods{% endblock %}

{% block content %}
<div class="pinax-stripe-payment-method-delete-container">
    <h4>
        Delete Payment Method
    </h4>
    {% if errors %}
        <div class="errors">
            {{ errors }}
        </div>
    {% endif %}
    <form action="{% url "pinax_stripe_payment_method_delete" object.pk %}" method="post">
        {% csrf_token %}
        <p>Are you sure you want to delete this card?</p>
        <div class="current-card">
            {{ object.brand }}
            {{ object.last4 }}
            Expires {{ object.exp_month }} / {{ object.exp_year }}
        </div>
        <div class="form-actions">
            <button class="payment-method-delete">Yes, I'm sure. Delete.</button>
        </div>
    </form>
</div>
{% endblock %}
