{% extends 'base.html' %} {% load static %} {% block title %}Apply Role Template - {{ user.get_full_name }}{% endblock %} {% block content %}

Apply Role Template

Apply role template permissions to {{ user.get_full_name }} ({{ user.get_role_display }})

{% if messages %} {% for message in messages %}

{{ message }}

{% endfor %} {% endif %}
{% if user.profile_image %} {{ user.get_full_name }} {% elif user.selfie %} {{ user.get_full_name }} {% else %}
{{ user.get_initials }}
{% endif %}

{{ user.get_full_name }}

{{ user.email }}

{{ user.phone_number }}

🏷️{{ user.get_role_display }}
Current Permissions
{{ current_permissions.allowed_permissions|default:0 }}
of {{ current_permissions.total_permissions|default:0 }} total

⚙️ Apply Role Template

{% csrf_token %}

Choose which role template to apply to this user. This will set their permissions based on the selected role's default template.

If checked, existing custom permissions will be overwritten with the role template. If unchecked, only missing permissions will be added.

Creates a backup of current permissions that can be restored later if needed.

Template Preview
Select a role template to see preview...
Cancel

📋 Current Permissions Summary

Allowed

{{ current_permissions.allowed_permissions|default:0 }}

Denied

{{ current_permissions.denied_permissions|default:0 }}

⚠️

Critical

{{ current_permissions.has_critical_permissions|yesno:"Yes,No" }}

⚙️

Total

{{ current_permissions.total_permissions|default:0 }}

{% endblock %}