diff --git a/app/modules/core/iam/templates/change_password_required.html b/app/modules/core/iam/templates/change_password_required.html new file mode 100644 index 0000000..04d5847 --- /dev/null +++ b/app/modules/core/iam/templates/change_password_required.html @@ -0,0 +1 @@ +{% extends "ui/templates/base/layout.html" %}{% block content %}
Your account requires a password update before proceeding.
Set your password to activate your account.
+ {% if flash %} +User creation UI will be expanded in the next hardening step.
+{% endblock %} diff --git a/app/modules/core/iam/templates/user_form.html b/app/modules/core/iam/templates/user_form.html new file mode 100644 index 0000000..d6d149e --- /dev/null +++ b/app/modules/core/iam/templates/user_form.html @@ -0,0 +1,303 @@ +{% extends "ui/templates/base/layout.html" %} +{% block content %} +Audit Firm and branch scope follow the logged-in user's access level.
+ + {% if flash %} +| User | +Audit Firm / Branch | +Roles | +Lifecycle | +Action | +
|---|---|---|---|---|
{{ row.full_name or '-' }} {{ row.email }} |
+ {{ tenants[row.tenant_id].name if row.tenant_id in tenants else '-' }} {{ branches[row.branch_id].name if row.branch_id in branches else '-' }} |
+ {% for role_name in user_roles.get(row.id, []) %}{{ ui.badge(role_name, 'brand') }}{% else %}No roles{% endfor %} |
+ {% if row.deleted_at %}{{ ui.badge('Deleted') }}{% endif %}{% if row.is_active %}{{ ui.badge('Active','emerald') }}{% else %}{{ ui.badge('Inactive','rose') }}{% endif %}{% if row.allow_login %}{{ ui.badge('Login enabled','sky') }}{% else %}{{ ui.badge('Login disabled','amber') }}{% endif %}{% if row.is_locked %}{{ ui.badge('Locked','amber') }}{% else %}{{ ui.badge('Unlocked') }}{% endif %} |
+
+ {% if "users.manage" in current_user_permissions %}
+
+ Edit
+ {% if row.deleted_at %}
+
+ {% else %}
+ {% if row.is_active %}{% else %}{% endif %}
+ {% if row.allow_login %}{% else %}{% endif %}
+ {% if row.is_locked %}{% else %}{% endif %}
+ {% if "users.invite" in current_user_permissions and row.allow_login and not row.deleted_at %}{% endif %}
+
+ {% endif %}
+
+ {% endif %}
+ |
+