summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-03-31 17:28:19 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-01 15:07:05 +0200
commita2a5e4ed78d7971efe54ea6becbf1f4e9d3d703f (patch)
tree5e3b8e0ae22a3a1744b2ec4f3880602478962503
parent02836444a9e24c85b40a7ea0b7cd67c419b4b15d (diff)
Submit IPs when scopes tree is read only
Otherwise, users can not switch between actions without going back to the parent view. This makes "scopesForm" work again in all views and not only in scopes.html and commands.html. Commit feed135554543 introduces this regression.
-rw-r--r--ogcp/templates/macros.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/ogcp/templates/macros.html b/ogcp/templates/macros.html
index 96561db..e91a2ef 100644
--- a/ogcp/templates/macros.html
+++ b/ogcp/templates/macros.html
@@ -24,7 +24,8 @@
<li id="{{ scope["name"]|replace(".", "_")|replace(" ", "_") }}_{{ scope["id"] }}" class="nav-item">
{% if " ".join(scope["ip"]) %}
<input class="form-check-input" type="checkbox" form="scopesForm"
- value="{{ " ".join(scope["ip"]) }}" {{ state }}
+ value="{{ " ".join(scope["ip"]) }}"
+ {% if state %}style="filter: grayscale(100%);" onclick="return false;"{% endif %}
{% if scope.get("selected", False) %}checked{% endif %}
name="{{ scope["name"] }}_{{ scope["id"] }}" />
{% endif %}