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 feed135554 introduces this regression.
multi-ogserver
Javier Sánchez Parra 2022-03-31 17:28:19 +02:00
parent 02836444a9
commit a2a5e4ed78
1 changed files with 2 additions and 1 deletions

View File

@ -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 %}