password_reset_confirm.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends "admin/base_site.html" %}
  2. {% load i18n %}
  3. {% block breadcrumbs %}
  4. <div class="breadcrumbs">
  5. <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
  6. &rsaquo; {% trans 'Password reset confirmation' %}
  7. </div>
  8. {% endblock %}
  9. {% block title %}{% trans 'Password reset' %}{% endblock %}
  10. {% block content %}
  11. {% if validlink %}
  12. <h1>{% trans 'Enter new password' %}</h1>
  13. <p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
  14. <form action="" method="post">{% csrf_token %}
  15. {{ form.new_password1.errors }}
  16. <p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
  17. {{ form.new_password2.errors }}
  18. <p class="aligned wide"><label for="id_new_password2">{% trans 'Confirm password:' %}</label>{{ form.new_password2 }}</p>
  19. <p><input type="submit" value="{% trans 'Change my password' %}" /></p>
  20. </form>
  21. {% else %}
  22. <h1>{% trans 'Password reset unsuccessful' %}</h1>
  23. <p>{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}</p>
  24. {% endif %}
  25. {% endblock %}