{% macro manage_navigation(nav) %} {% from 'macros.twig' import container_title %} {% for name, value in nav %}
{{ container_title(name) }}
{% endfor %} {% endmacro %} {% macro permissions_table(lists, infos, readonly) %} {% from '_layout/input.twig' import input_checkbox %}
{% for list in lists %}
{{ list.title }}
Yes
No
Never
{% for perm in list.perms %}
{{ perm.title }}
{{ input_checkbox(perm.name, '', infos[perm.category].checkAllow(perm.value) ?? false, 'permissions__choice permissions__choice--radio permissions__choice--yes', 'yes', true, null, readonly) }}
{{ input_checkbox(perm.name, '', infos[perm.category].checkNeutral(perm.value) ?? true, 'permissions__choice permissions__choice--radio permissions__choice--no', 'no', true, null, readonly) }}
{{ input_checkbox(perm.name, '', infos[perm.category].checkDeny(perm.value) ?? false, 'permissions__choice permissions__choice--radio permissions__choice--never', 'never', true, null, readonly) }}
{% endfor %} {% endfor %}
{% endmacro %}