{% extends "base.html" %} {% block content %}

{{ 'Edit User' if user else 'Create User' }}

{{ 'Update the details for %s.'|format(user.username) if user else 'Create a new user account.' }}

Select the primary role for this user. Additional roles can be assigned via "Manage Roles & Permissions" below.

{% if not user %}

Set an initial password for this user. If set, you can require them to change it on first login.

{% endif %} {% if user %}

{{ _('Password Reset') }}

Reset the password for this user. Leave blank to keep the current password.

Password must be at least 8 characters long.

{{ _('Client Portal Access') }}

Enable client portal access for this user. When enabled, the user will only see data for their assigned client.

Select the client this user should have access to.

{{ _('Roles & Permissions') }}

Manage fine-grained role-based permissions for this user. You can assign multiple roles and customize permissions.

Manage Roles & Permissions
{% if user.roles %} Current roles: {{ user.get_role_names()|join(', ') }} {% else %} Current role: {{ user.role|capitalize }} (legacy) {% endif %}
{% endif %}
Cancel
{% endblock %}