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

User Settings

{% if len(data['servers_all']) > 0 %}

Roles - the roles this user is a member of

{% for role in data['roles_all'] %} {% end %}
Role Name Member?
{{ role.role_name }} {% if role.role_id in data['user']['roles'] %} {% else %} {% end %}

Crafty Permissions - permissions this user has on Crafty Controller

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

User Config Area

Here is where you can change the configuration of your user

Created: {{ str(data['user']['created']) }}
Last login: {{ str(data['user']['last_login']) }}
Last update: {{ str(data['user']['last_update']) }}
Last IP: {{ data['user']['last_ip'] }}
API Key: {{ data['user']['api_token'] }}

{% if data['new_user'] %} Delete User
You cannot delete something that does not yet exist {% elif data['user']['superuser'] %} Delete User
You cannot delete a superuser {% else %} Delete User {% end %}
{% end %} {% block js %} {% end %}