{% extends 'base.html' %} {% block title %}Create User{% endblock %} {% block content %}

{% if managed_user %}Edit User{% else %}Create User{% endif %}

{% csrf_token %} {% if form.non_field_errors %} {% endif %}
{{ form.first_name }} {% if form.first_name.errors %}
{{ form.first_name.errors|join:', ' }}
{% endif %}
{{ form.last_name }} {% if form.last_name.errors %}
{{ form.last_name.errors|join:', ' }}
{% endif %}
{{ form.email }}
Used as the login username for this account.
{% if form.email.errors %}
{{ form.email.errors|join:', ' }}
{% endif %}
{{ form.role }} {% if form.role.errors %}
{{ form.role.errors|join:', ' }}
{% endif %}
{% if managed_user %}
{{ form.is_active }}

Inactive users stay in the system but cannot sign in.

{% if form.is_active.errors %}
{{ form.is_active.errors|join:', ' }}
{% endif %}
{% endif %}
{% if form.password1 %}
{{ form.password1 }}
{% if managed_user %}
{{ form.password1.help_text }}
{% endif %}
Caps Lock is on.
{% if form.password1.errors %}
{{ form.password1.errors|join:', ' }}
{% endif %} {% else %}
Password updates stay in the account security flow and are not edited from this screen.
{% endif %}
{% if form.password2 %}
{{ form.password2 }}
Caps Lock is on.
{% if form.password2.errors %}
{{ form.password2.errors|join:', ' }}
{% endif %} {% else %}
Use the user's password-reset flow or Django admin if you need to rotate credentials.
{% endif %}
Reset

Users

{{ users|length }} user{{ users|length|pluralize }}
{% for account in users %} {% endfor %}
Name Email Role Status Created Actions
{{ account.get_full_name|default:account.email }} {% if request.user.pk == account.pk %}You{% endif %}
{% if account.is_superuser %} Superuser access {% elif account.is_staff %} Staff access {% else %} Standard access {% endif %}
{{ account.email }} {{ account.role }} {% if account.is_active %} Active {% else %} Inactive {% endif %} {{ account.created_at|date:'d M Y' }} Edit
{% endblock %}