{% extends 'mtp_common/user_admin/base.html' %} {% load i18n %} {% load mtp_common %} {% block page_title %}{{ page_title }} – {{ block.super }}{% endblock %} {% block admin_header %}

{{ page_title }}

{% endblock %} {% block admin_content %} {% if form.create %}

{% trans 'Fill in a user’s details to allow them access.' %} {% trans 'You can give them a general user or an account management role.' %}

{% if permissions_note %}

{{ permissions_note }}

{% endif %} {% endif %}
{% csrf_token %} {% include 'mtp_common/forms/error-summary.html' with form=form only %} {% if form.create %} {% with field=form.username %}
{% include 'mtp_common/forms/field-label.html' with field=field only %} {% include 'mtp_common/forms/field-errors.html' with field=field only %}
{% endwith %} {% endif %} {% include 'mtp_common/forms/field.html' with field=form.first_name only %} {% include 'mtp_common/forms/field.html' with field=form.last_name only %} {% include 'mtp_common/forms/field.html' with field=form.email only %} {% with field=form.role %} {% if field.field.choices %}
{% trans 'Give the user access to:' %}
{% include 'mtp_common/forms/field-help-text.html' with field=field only %} {% include 'mtp_common/forms/field-errors.html' with field=field only %} {% for choice_value, choice_description in field.field.choices %}
{% endfor %}
{% endif %} {% endwith %} {% with field=form.user_admin %} {% if field %} {% include 'mtp_common/forms/checkbox-field.html' with field=field only %} {% endif %} {% endwith %}
{% trans 'Cancel' %}
{% endblock %}