{% extends 'base.html' %} {% load static %} {% block title %}Edit User Role - {{ organization.name }}{% endblock %} {% block content %}

Edit User Role

Modify user role and permissions for {{ edit_tenant_user.user.get_full_name|default:edit_tenant_user.user.email }}

User Information
{% csrf_token %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
Name:
{{ edit_tenant_user.user.get_full_name|default:edit_tenant_user.user.username }}
Email:
{{ edit_tenant_user.user.email }}
Joined:
{{ edit_tenant_user.joined_at|date:"d M Y" }}
Current Status:
{% if edit_tenant_user.is_active %} Active {% else %} Inactive {% endif %}
{{ form.role }} {% if form.role.errors %}
{{ form.role.errors }}
{% endif %} Changing the role will automatically update the user's permissions.
{{ form.is_active }}
{% if form.is_active.errors %}
{{ form.is_active.errors }}
{% endif %} Inactive users cannot log in to the system.
Cancel
Current Permissions

Based on current role: {{ edit_tenant_user.get_role_display }}

View Reports
Create Transactions
Edit Transactions
Delete Transactions
Manage Contacts
Manage Users
Manage Settings
Role Descriptions
Admin

Full access except billing management

Accountant

Manage transactions, contacts, and view reports

Staff

Create transactions and view basic reports

Viewer

Read-only access to view data

{% endblock %} {% block extra_js %} {% endblock %}