{% extends 'base.html' %}

{% block content %}
<article>
    <header>
        <p><a href="{% url 'storefront:customer-detail' user.pk %}">&larr; Back</a></p>
        <h1>Update Address</h1>
    </header>
    <section>
        <form method="post" action="{% url 'storefront:address-update' customer.pk address.pk %}">
            {% csrf_token %}
            {{ form.as_p }}
            <p>
                <input type="submit" value="Save changes">
            </p>
        </form>
    </section>
</article>
{% endblock %}
