{% extends "ui/templates/base/layout.html" %} {% block content %}

{{ "Create User" if form_mode == "create" else "Edit User" }}

Audit Firm and branch scope follow the logged-in user's access level.

{% if flash %}
{{ flash }}
{% endif %}
{% if form_mode == "create" %}
{% endif %}
{% if can_change_tenant %} {% else %}
{{ selected_tenant_name or current_user.tenant_id }}
{% endif %}
{% if scope.branch_scoped %}
{{ selected_branch_name or current_user.branch_id }}
{% else %} {% endif %}
{% for role in roles %} {% else %}
No roles are available for your scope.
{% endfor %}

Employee profile auto-link

For internal firm roles such as Firm Admin, Partner, Manager, Branch Manager and Staff, an employee profile will be created and linked automatically. System Admin, Client and Consultant-only users are excluded.

Phase 7F

Leave blank to auto-generate.

Branch is mandatory for internal employee users because attendance geofencing, branch timezone, leave approvals and work allocation depend on the employee's branch.
Cancel

Scope rules

{% if can_change_tenant and not scope.branch_scoped %} {% endif %} {% endblock %}