{% extends "base.html" %} {% load i18n %} {% block title %}{% trans 'Change Password' %} | {{ block.super }}{% endblock %} {% block section_title %} {% trans "Change your password" %} {% endblock %} {% block content %} {% if user.is_authenticated %}
{% csrf_token %} {% if form.non_field_errors %} {{ form.non_field_errors }} {% endif %} {# Include the hidden fields in the form #} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %}
{{ form.old_password.errors }} {{ form.old_password }}
{{ form.new_password1.errors }} {{ form.new_password1 }}
{{ form.new_password2.errors }} {{ form.new_password2 }}
{% else %} {% url registration_register as register_url %} {% if register_url %}

{% trans "If you" %} {% trans "sign up" %} {% trans "for an account, we'll let you reset your password as often as you'd like!" %}

{% endif %} {% endif %} {% endblock %}