{% extends "base.html" %}

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