diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-19 17:21:13 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-25 13:53:04 +0200 |
commit | af8236b18948b083c408df39306fc36bc26b51b7 (patch) | |
tree | 69d5e2ba2ccee58601e61b0c902b4d0438798720 /ogcp/templates/commands.html | |
parent | 8bcd8fd7a4c7d36a1bca2b3c36765fc773a1af78 (diff) |
ogcp: add support to run scripts in clients
Add view at /action/script/run to visualize the available scripts
and run a single script file in the selected clients.
Use shell/list to request the script list and shell/run API call
to request the execution.
Diffstat (limited to 'ogcp/templates/commands.html')
-rw-r--r-- | ogcp/templates/commands.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ogcp/templates/commands.html b/ogcp/templates/commands.html index aa3c4b4..eab9f29 100644 --- a/ogcp/templates/commands.html +++ b/ogcp/templates/commands.html @@ -88,6 +88,15 @@ </div> <div class="dropdown btn"> + <button class="btn btn-secondary btn-light dropdown-toggle{% block nav_script %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false"> + {{ _('Script') }} + </button> + <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> + <input class="btn btn-light dropdown-item{% block nav_run_script %}{% endblock %}" type="submit" value="{{ _('Run') }}" + form="scopesForm" formaction="{{ url_for('action_run_script') }}" formmethod="get"> + </div> + + <div class="dropdown btn"> <button class="btn btn-secondary btn-light dropdown-toggle{% block nav_logs %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false"> Logs </button> |