You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

password_change_form.html 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {% extends "admin/base_site.html" %}
  2. {% load i18n static %}
  3. {% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}">{% endblock %}
  4. {% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} {% trans 'Change password' %} / <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>{% endblock %}
  5. {% block breadcrumbs %}
  6. <div class="breadcrumbs">
  7. <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
  8. &rsaquo; {% trans 'Password change' %}
  9. </div>
  10. {% endblock %}
  11. {% block title %}{{ title }}{% endblock %}
  12. {% block content_title %}<h1>{{ title }}</h1>{% endblock %}
  13. {% block content %}<div id="content-main">
  14. <form method="post">{% csrf_token %}
  15. <div>
  16. {% if form.errors %}
  17. <p class="errornote">
  18. {% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}
  19. </p>
  20. {% endif %}
  21. <p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
  22. <fieldset class="module aligned wide">
  23. <div class="form-row">
  24. {{ form.old_password.errors }}
  25. {{ form.old_password.label_tag }} {{ form.old_password }}
  26. </div>
  27. <div class="form-row">
  28. {{ form.new_password1.errors }}
  29. {{ form.new_password1.label_tag }} {{ form.new_password1 }}
  30. {% if form.new_password1.help_text %}
  31. <div class="help">{{ form.new_password1.help_text|safe }}</div>
  32. {% endif %}
  33. </div>
  34. <div class="form-row">
  35. {{ form.new_password2.errors }}
  36. {{ form.new_password2.label_tag }} {{ form.new_password2 }}
  37. {% if form.new_password2.help_text %}
  38. <div class="help">{{ form.new_password2.help_text|safe }}</div>
  39. {% endif %}
  40. </div>
  41. </fieldset>
  42. <div class="submit-row">
  43. <input type="submit" value="{% trans 'Change my password' %}" class="default">
  44. </div>
  45. </div>
  46. </form></div>
  47. {% endblock %}