diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-03-31 17:28:19 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-04-01 15:07:05 +0200 |
commit | a2a5e4ed78d7971efe54ea6becbf1f4e9d3d703f (patch) | |
tree | 5e3b8e0ae22a3a1744b2ec4f3880602478962503 | |
parent | 02836444a9e24c85b40a7ea0b7cd67c419b4b15d (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.html | 3 |
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 %} |