blob: d9d2997b825064ad1d6c7c66dec49170c3b8948d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{% macro print_scopes_tree(scopes) -%}
<ul class="list-group list-group-flush">
{% for scope in scopes %}
<li class="list-group-item state--{{ scope['state'] | lower }}">
<input class="form-check-input" type="checkbox" form="scopesForm"
value="{{ " ".join(scope["ip"]) }}"
name="{{ scope["name"] }}_{{ scope["id"] }}">
{{ scope["name"] }}
{% if "state" in scope %}
-- STATE: {{ scope["state"] }}
{% endif %}
{{ print_scopes_tree(scope["scope"]) }}
</li>
{% endfor %}
</ul>
{% endmacro %}
|