diff --git a/templates/accounts/roles.html b/templates/accounts/roles.html new file mode 100644 index 0000000..6ed7f1d --- /dev/null +++ b/templates/accounts/roles.html @@ -0,0 +1,90 @@ +{% extends "base.html" %} +{% block title %}Roles{% endblock %} +{% block breadcrumb %} + +{% endblock %} +{% block content %} +
{{ roles.count }} role{{ roles.count|pluralize }}
+Define a new role for your organization
System roles cannot be deleted
| Name | +Slug | +Type | +Users | + {% if request.user.is_admin %} +Actions | + {% endif %} +
|---|---|---|---|---|
| + {{ r.name }} + {% if r.slug in admin_roles %} + System + {% endif %} + | +{{ r.slug }} | ++ {% if r.slug in admin_roles %} + Hardcoded — full access + {% else %} + Custom — follows rules + {% endif %} + | +{{ r.users.count }} | + {% if request.user.is_admin %} ++ {% if not r.is_system %} + + {% else %} + Protected + {% endif %} + | + {% endif %} +
| No roles defined | ||||
Administration
+ Roles Users {{ total_users }} diff --git a/templates/components/sidebar.html b/templates/components/sidebar.html index 5645266..387fe64 100644 --- a/templates/components/sidebar.html +++ b/templates/components/sidebar.html @@ -54,8 +54,11 @@ UI Settings - {% if request.user.role == 'superadmin' %} + {% if request.user.is_admin %} + + Roles + Users {{ total_users }} diff --git a/templates/projects/board.html b/templates/projects/board.html index f4ed627..c7082ed 100644 --- a/templates/projects/board.html +++ b/templates/projects/board.html @@ -785,9 +785,9 @@ class="space-y-6" @@ -826,7 +826,7 @@ class="space-y-6" {% for perm in permissions %}