{% extends "base.html" %}

{% load i18n %}

{% block head_title %}{% trans "Change Password" %}{% endblock %}

{% block content %}
<article>
    <header>
        <p><a href="{% url 'storefront:customer-detail' user.pk %}">&larr; Back</a></p>
        <h1>{% trans "Change Password" %}</h1>
        <a href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
    </header>

    <form method="POST" action="{% url 'account_change_password' %}" class="password_change">
        {% csrf_token %}
        {{ form.as_p }}
        <input type="submit" value="{% trans "Save changes" %}">
    </form>
</article>
{% endblock %}
