{% extends 'base.html' %} {% load static %} {% block title %}Role Comparison{% endblock %} {% block content %}

Role Comparison: {{ role1_name }} vs {{ role2_name }}

Compare permissions between different roles to identify differences and similarities.

Back to Configuration

Compare Different Roles

Comparison Statistics

Both Allowed

{{ stats.both_allowed }}

{{ role1_name }} Only

{{ stats.role1_only }}

👤+

{{ role2_name }} Only

{{ stats.role2_only }}

Neither Allowed

{{ stats.neither_allowed }}

Detailed Permission Comparison

{% for page_name, page_permissions in comparison_data.items %} {% for action_code, perm_data in page_permissions.items %} {% endfor %} {% endfor %}
Permission {{ role1_name }} {{ role2_name }} Status
{% if perm_data.category == 'view' %} {% elif perm_data.category == 'create' %} + {% elif perm_data.category == 'edit' %} ✏️ {% elif perm_data.category == 'delete' %} 🗑️ {% elif perm_data.category == 'approve' %} {% elif perm_data.category == 'export' %} ⬇️ {% else %} ⚙️ {% endif %}
{{ perm_data.action_name }}
{{ perm_data.category|title }}
{% if perm_data.role1_allowed %} Allowed {% else %} Denied {% endif %} {% if perm_data.role2_allowed %} Allowed {% else %} Denied {% endif %} {% if perm_data.status == 'both' %} Both {% elif perm_data.status == 'role1_only' %} {{ role1_name }} Only {% elif perm_data.status == 'role2_only' %} 👤+{{ role2_name }} Only {% else %} Neither {% endif %}
{% csrf_token %} {% endblock %}