diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-08-23 16:15:23 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-09-27 09:48:35 +0200 |
commit | 0cc65a057d79e009ea07cd5deb86f84aaf49b537 (patch) | |
tree | dd60712eb744dad501199e917fd476c6c0759da7 /ogcp/templates/macros.html | |
parent | 0db56d5eee7d7d73073e904bb41cc1960ec1e29e (diff) |
Add a room to a center using the scopes tree
With this commit users can select a center from the scopes tree, and then
add a room to that center.
Diffstat (limited to 'ogcp/templates/macros.html')
-rw-r--r-- | ogcp/templates/macros.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html index f67b1a6..0283d26 100644 --- a/ogcp/templates/macros.html +++ b/ogcp/templates/macros.html @@ -28,6 +28,12 @@ value="{{ scope["server_ip_port"] }}" onclick="return false;" {% if scope.get("selected", False) %}checked{% endif %} name="scope-server" hidden/> + {% elif scope["type"] == "center" %} + <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-center" /> {% elif scope["type"] == "room" %} <input class="form-check-input" type="checkbox" form="scopesForm" value="{{ scope["id"] }}" |