PageRenderTime 41ms CodeModel.GetById 37ms RepoModel.GetById 0ms app.codeStats 0ms

/django/contrib/admin/templates/registration/password_change_form.html

https://code.google.com/p/mango-py/
HTML | 51 lines | 38 code | 13 blank | 0 comment | 0 complexity | 27c3624ae333ddf106585d913fd0bc26 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. {% extends "admin/base_site.html" %}
  2. {% load i18n adminmedia %}
  3. {% load url from future %}
  4. {% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
  5. {% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} {% trans 'Change password' %} / <a href="../logout/">{% trans 'Log out' %}</a>{% endblock %}
  6. {% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %}</div>{% endblock %}
  7. {% block title %}{% trans 'Password change' %}{% endblock %}
  8. {% block content %}<div id="content-main">
  9. <form action="" method="post">{% csrf_token %}
  10. <div>
  11. {% if form.errors %}
  12. <p class="errornote">
  13. {% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
  14. </p>
  15. {% endif %}
  16. <h1>{% trans 'Password change' %}</h1>
  17. <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>
  18. <fieldset class="module aligned wide">
  19. <div class="form-row">
  20. {{ form.old_password.errors }}
  21. <label for="id_old_password" class="required">{% trans 'Old password' %}:</label>{{ form.old_password }}
  22. </div>
  23. <div class="form-row">
  24. {{ form.new_password1.errors }}
  25. <label for="id_new_password1" class="required">{% trans 'New password' %}:</label>{{ form.new_password1 }}
  26. </div>
  27. <div class="form-row">
  28. {{ form.new_password2.errors }}
  29. <label for="id_new_password2" class="required">{% trans 'Password (again)' %}:</label>{{ form.new_password2 }}
  30. </div>
  31. </fieldset>
  32. <div class="submit-row">
  33. <input type="submit" value="{% trans 'Change my password' %}" class="default" />
  34. </div>
  35. <script type="text/javascript">document.getElementById("id_old_password").focus();</script>
  36. </div>
  37. </form></div>
  38. {% endblock %}