{% extends "account/base.jinja" %}

{% block head_title %}
    {% trans %}
        Change Password
    {% endtrans %}
{% endblock head_title %}
{% block content %}
    {% if token_fail %}
        {% trans %}
            Bad Token
        {% endtrans %}
    {% else %}
        {% trans %}
            Change Password
        {% endtrans %}
    {% endif %}
    {% if token_fail %}
        {% set passwrd_reset_url=url('account_reset_password') %}
        <p>
            {% trans %}
                The password reset link was invalid, possibly because it has already been used.  Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.
            {% endtrans %}
        </p>
    {% else %}
        <form method="post" action="{{ action_url }}">
            {% csrf_token %}
            {{ form }}
            <input type="submit" name="action" value="{% trans %}change password{% endtrans %}" />
        </form>
    {% endif %}
{% endblock content %}
