summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/macros.html
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates/macros.html')
-rw-r--r--ogcp/templates/macros.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html
new file mode 100644
index 0000000..d9d2997
--- /dev/null
+++ b/ogcp/templates/macros.html
@@ -0,0 +1,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 %}
+