{% extends 'manage/users/master.twig' %} {% from 'macros.twig' import container_title %} {% from 'manage/macros.twig' import permissions_table %} {% from '_layout/input.twig' import input_csrf, input_text, input_checkbox, input_file, input_select, input_colour %} {% set site_link = url('user-profile', {'user': manage_user.user_id}) %} {% block manage_content %}
{% if manage_notices|length > 0 %}
{% for notice in manage_notices %}

{{ notice }}

{% endfor %}
{% endif %} {% if can_manage_users %}
{{ container_title('Editing ' ~ manage_user.username ~ ' (' ~ manage_user.user_id ~ ')') }} {{ input_csrf('users_edit') }}
{{ input_colour('colour[hex]', '', manage_user.user_colour|default(0)|colour_hex) }}
{# TODO: if the hierarchy of the current user is too low to touch the role then opacity should be lowered and input disabled #}
{% for role in manage_roles %} {% endfor %}
{% if can_manage_perms %}
{{ container_title('Permissions for ' ~ manage_user.username ~ ' (' ~ manage_user.user_id ~ ')') }} {{ input_csrf('users_edit') }} {{ permissions_table(permissions, true) }}
{% endif %} {% endif %}
{% endblock %}