{% macro scopes_tree_collapse(scopes, state='', selection_mode='scopes') -%}
{% endmacro %} {% macro scopes_tree_collapse_level(scopes, parent_room, parent_id, state, selection_mode) -%} {% for scope in scopes %} {% set scope_name = scope["name"]|replace(".", "_")|replace(" ", "_") %}