{% extends ../base.html %} {% block meta %} {% end %} {% block title %}Crafty Controller - Edit Role{% end %} {% block content %}
{% if data['new_role'] %}
{% else %} {% end %} {% raw xsrf_form_html() %}

Role Settings

Allowed Servers - servers this role is allowed to access

{% for server in data['servers_all'] %} {% end %}
Server Name Access?
{{ server['server_name'] }} {% if server['server_id'] in data['role']['servers'] %} {% else %} {% end %}

Roles Permissions - permissions this role has on this/these servers

{% for permission in data['permissions_all'] %} {% end %}
Permission Name Authorized ?
{{ permission.name }} {% if permission in data['permissions_list'] %} {% else %} {% end %}

Users Assigned to Role:

{% for user in data['users'] %} {% for ruser in data['user-roles'][user.user_id] %} {% if ruser == data['role']['role_name'] %} {% end %} {% end %} {% end %}
User Name
{{ user.username }}

Role Config Area

Here is where you can change the configuration of your role

Created: {{ str(data['role']['created']) }}
Last updated: {{ str(data['role']['last_update']) }}

{% if data['new_role'] %} Delete Role
You cannot delete something that does not yet exist {% else %} Delete Role {% end %}
{% end %} {% block js %} {% end %}