password_reset_confirm.html 1.0 KB

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