{% extends "base.html" %} {% block title %}{% if action == 'create' %}Create User{% else %}Edit User{% endif %} - Admin - Anguis{% endblock %} {% block content %}

{% if action == 'create' %}Create New User{% else %}Edit User: {{ user.username }}{% endif %}

{% if action == 'create' %}Add a new user account{% else %}Modify user account settings{% endif %}

Back to Users
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endif %} {% endwith %}
User Details

Unique username for login (can include @ for domain users)

User's email address (optional)

Full name or display name (optional)

{% if action == 'create' %}

How this user will authenticate

Minimum 8 characters (only for database auth)

Re-enter password to confirm

{% endif %}

Comma-separated list of groups (e.g., admin, users, operators)

{% if action == 'edit' %} {% endif %}
Cancel
{% if action == 'edit' and user.auth_backend == 'database' %}
Change Password

Minimum 8 characters

Re-enter password to confirm

{% endif %} {% if action == 'edit' %}
Account Information
Auth Backend: {{ user.auth_backend }} {% if user.auth_backend != 'database' %} (Authenticates externally, password managed by {{ user.auth_backend|upper }}) {% endif %}
Created: {{ user.created_at[:19] if user.created_at else 'N/A' }}
Last Updated: {{ user.updated_at[:19] if user.updated_at else 'N/A' }}
Last Login: {{ user.last_login[:19] if user.last_login else 'Never' }}
{% endif %}
{% endblock %}