{% extends 'mtp_common/user_admin/base.html' %} {% load i18n %} {% load mtp_common %} {% block admin_header %}
{% language_switch %}

{% if form.create %} {% trans 'Create a new user' %} {% else %} {% blocktrans trimmed with username=form.username.value %} Edit user ‘{{ username }}’ {% endblocktrans %} {% endif %}

{% 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.user_admin %}
{% include 'mtp_common/forms/field-errors.html' with field=field only %}
{% endwith %}
{% trans 'Cancel' %}
{% endblock %}