{% extends "profiles/base.html" %} {% load perm_tags %} {% load profile_tags %} {% block title %}{% trans "Password change" %}{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block content %} {# TODO: users_options templates to bootstrap markup #} {% users_options request.user user_this %}

{% trans "Reset Password for " %}{{ user_this.first_name }} {{ user_this.last_name }}

{% csrf_token %} {% if not request.user.is_superuser %}

{% 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." %}

{% else %}

{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}

{% endif %} {% if form.errors %} {% endif %} {% if not request.user.is_superuser %} {% trans "Old password" as field_label %} {% include "base/bootstrap_form_horizontal_field.html" with field=form.old_password field_label=field_label inline_errors=True %} {% endif %} {% trans "New password" as field_label %} {% include "base/bootstrap_form_horizontal_field.html" with field=form.new_password1 field_label=field_label inline_errors=True %} {% trans "Password (again)" as field_label %} {% include "base/bootstrap_form_horizontal_field.html" with field=form.new_password2 field_label=field_label inline_errors=True %}
{% endblock %} {% block extra_body %} {{ block.super }} {% endblock %}