{% extends 'layouts/base.html' %} {% load static %} {% block title %} {% if object %}Edit Role - {{ object.name }} {% else %} Add Role {% endif %} {% endblock title %} {% block extra_css %} {% endblock extra_css %} {% block breadcrumb %} {% endblock breadcrumb %} {% block content %}
{% csrf_token %}

Role Information

Clear, descriptive name for this role
Unique identifier (auto-generated if empty)
Choose an icon to represent this role
Role hierarchy level (1=highest, 5=lowest)
Provide a clear description of this role's purpose and responsibilities

Role Configuration

Optional: Set role hierarchy
Type of role for categorization
Configure role behavior and availability

Permissions
0
permissions selected

{% for app_name, app_permissions in permission_groups.items %}
{{ app_name|title }}
0/{{ app_permissions|length }}
{% for permission in app_permissions %}
{% endfor %}
{% endfor %}

Role Preview

Role Name

role_code

Priority: 50 0 permissions Active

Role description will appear here...

Cancel
{% if object %} {% endif %}
{% endblock content %} {% block modals %} {% if object %} {% endif %} {% endblock modals %} {% block extra_js %} {% endblock extra_js %}