blob: 3bde877ffcc1b3ea08f6255c3378ee84bb69e7d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{% 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"]) }}"
{% if scope.get("selected", False) %}checked{% endif %}
name="{{ scope["name"] }}_{{ scope["id"] }}">
{{ scope["name"] }}
{% if "state" in scope %}
-- STATE: {{ scope["state"] }}
{% endif %}
{{ print_scopes_tree(scope["scope"]) }}
</li>
{% endfor %}
</ul>
{% endmacro %}
|