{% macro manage_navigation(nav) %} {% from 'macros.twig' import container_title %} {% for name, value in nav %}
{{ container_title(name) }}
{% endfor %} {% endmacro %} {% macro permissions_table(permissions, readonly) %} {% from '_layout/input.twig' import input_checkbox %}
{% for perms in permissions %}
{{ perms.title }}
Yes
No
Never
{% for perm in perms.perms %}
{{ perm.title }}
{{ input_checkbox('perms[' ~ perms.section ~ '][' ~ perm.section ~ '][value]', '', perm.value == 'yes', 'permissions__choice permissions__choice--radio permissions__choice--yes', 'yes', true, null, readonly) }}
{{ input_checkbox('perms[' ~ perms.section ~ '][' ~ perm.section ~ '][value]', '', perm.value == 'no', 'permissions__choice permissions__choice--radio permissions__choice--no', 'no', true, null, readonly) }}
{{ input_checkbox('perms[' ~ perms.section ~ '][' ~ perm.section ~ '][value]', '', perm.value == 'never', 'permissions__choice permissions__choice--radio permissions__choice--never', 'never', true, null, readonly) }}
{% endfor %} {% endfor %}
{% endmacro %}