{% extends "vantage/base.html" %} {% load i18n %} {% comment %} What the detail page offers next to a masked password hash. A hash is never revealed (see vantage.sensitive), so this is the only thing anyone looking at one can usefully do with it. Django's own AdminPasswordChangeForm does the work, validators included. {% endcomment %} {% block content %}

{% translate "Set password" %}

{% blocktranslate trimmed with name=object_label %} Choose a new password for {{ name }}. The current one is stored as a hash and cannot be shown. {% endblocktranslate %}

{% if form.non_field_errors %} {% endif %}
{% csrf_token %} {% for field in form %}
{{ field }} {% if field.help_text %}
{{ field.help_text }}
{% endif %} {% if field.errors %}

{{ field.label }}: {% for error in field.errors %}{{ error }} {% endfor %}

{% endif %}
{% endfor %}
{% translate "Cancel" %}
{% endblock %}