{% extends 'hidp/includes/forms/base_form.html' %} {% load csp_nonce %} {% block form %} {% comment %} the following is a modified version of /django/forms/templates/django/forms/div.html {% endcomment %} {{ errors }} {% if errors and not fields %}
{% for field in hidden_fields %}{{ field }}{% endfor %}
{% endif %} {% for field, errors in fields %}
{% if field.use_fieldset %}
{% if field.label %}{{ field.legend_tag }}{% endif %} {% else %} {% if field.label %}{{ field.label_tag }}{% endif %} {% endif %} {% if field.name == "password1" %}
{% comment %} inline svg so stroke can pick up the "currentColor" {% endcomment %}
{{ field.help_text|safe }}
{% elif field.help_text %}
{{ field.help_text|safe }}
{% endif %} {{ errors }} {{ field }} {% if field.use_fieldset %}
{% endif %} {% if forloop.last %} {% for field in hidden_fields %}{{ field }}{% endfor %} {% endif %}
{% endfor %} {% if not fields and not errors %} {% for field in hidden_fields %}{{ field }}{% endfor %} {% endif %} {% endblock %}