diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-08-12 10:38:04 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-08-31 15:57:51 +0200 |
commit | bf0459a837f955b82da9eb65805f0c424449d921 (patch) | |
tree | eceaffb4305f5806c6e9d84c39aac13c72b4d583 /ogcp/templates/macros.html | |
parent | 8726ade25ae3c8ef34ad2c1cd53b3b0c469f4634 (diff) |
Add a client to a room using the scopes tree
With this commit users can select a room from the scopes tree, and then
add a client to that room.
Diffstat (limited to 'ogcp/templates/macros.html')
-rw-r--r-- | ogcp/templates/macros.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html index 4da76d6..28c4f5a 100644 --- a/ogcp/templates/macros.html +++ b/ogcp/templates/macros.html @@ -23,7 +23,13 @@ {% macro scopes_tree_collapse_level(scopes, parent_id, state) -%} {% for scope in scopes %} <li id="{{ scope["name"]|replace(".", "_")|replace(" ", "_") }}_{{ scope["id"] }}" class="nav-item"> - {% if " ".join(scope["ip"]) %} + {% if scope["type"] == "room" %} + <input class="form-check-input" type="checkbox" form="scopesForm" + value="{{ scope["id"] }}" + {% if state %}style="filter: grayscale(100%);" onclick="return false;"{% endif %} + {% if scope.get("selected", False) %}checked{% endif %} + name="scope-room" /> + {% elif " ".join(scope["ip"]) %} <input class="form-check-input" type="checkbox" form="scopesForm" value="{{ " ".join(scope["ip"]) }}" {% if state %}style="filter: grayscale(100%);" onclick="return false;"{% endif %} |