{% comment %} Copyright 2010 Canonical Ltd. This software is licensed under the GNU Affero General Public License version 3 (see the file LICENSE). {% endcomment %} {% comment %} This widgets expects `form` to be in context, containing fields named `password` and `passwordconfirm`. It assumes that the the form's first non-field error concerns the passwords, and displays it if present. {% endcomment %} {% load i18n %}


{{ form.password }} {% if form.password.errors %} {{ form.password.errors|first }} {% endif %} {{ form.password.help_text }}


{{ form.passwordconfirm }} {% if form.passwordconfirm.errors %} {{ form.passwordconfirm.errors|first }} {% endif %} {% if form.non_field_errors %} {{ form.non_field_errors|first }} {% endif %}