github.com/blystad/deis@v0.11.0/controller/web/templates/account/password_reset_from_key.html (about)

     1  {% extends "account/base.html" %}
     2  
     3  {% load url from future %}
     4  {% load i18n %}
     5  {% block head_title %}{% trans "Change Password" %}{% endblock %}
     6  
     7  {% block content %}
     8      <h1>{% if token_fail %}{% trans "Bad Token" %}{% else %}{% trans "Change Password" %}{% endif %}</h1>
     9      
    10      {% if token_fail %}
    11          {% url 'account_reset_password' as passwd_reset_url %}
    12          <p>{% blocktrans %}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>.{% endblocktrans %}</p>
    13      {% else %}
    14          {% if form %}
    15              <form method="POST" action="" class="uniForm">
    16                  {% csrf_token %}
    17                  {{ form.as_p }}
    18                  <input type="submit" name="action" value="{% trans "change password" %}"/>
    19              </form>
    20          {% else %}
    21              <p>{% trans 'Your password is now changed.' %}</p>
    22          {% endif %}
    23      {% endif %}
    24  {% endblock %}