summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/commands.html
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-11-26 11:26:22 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-11-27 14:45:34 +0100
commit76fe1b775a2fdad4ee7b8d04f2a71778f693d8e4 (patch)
treef9dbe020973ad8f242c57231d5861a05c76733bc /ogcp/templates/commands.html
parent92ab31650c60163607ea5b00c57a7b223ef49bd4 (diff)
views: add direct cmd execution view
Reorganize "Run" section of Commands view as follows: Commands └── Run ├── Script: run script from folder ├── Cmd: direct command execution └── Display output: results of last execution Adapt API REST call to the new interface. Remove strange legacy ;|\n\r terminator. Remove "echo" field and add "inline" field.
Diffstat (limited to 'ogcp/templates/commands.html')
-rw-r--r--ogcp/templates/commands.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/ogcp/templates/commands.html b/ogcp/templates/commands.html
index 41a0917..c909ea3 100644
--- a/ogcp/templates/commands.html
+++ b/ogcp/templates/commands.html
@@ -97,11 +97,13 @@
<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') }}
+ {{ _('Run') }}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
- <input class="btn btn-light dropdown-item{% block nav_run_script %}{% endblock %}" type="submit" value="{{ _('Run') }}"
+ <input class="btn btn-light dropdown-item{% block nav_run_script %}{% endblock %}" type="submit" value="{{ _('Script') }}"
form="scopesForm" formaction="{{ url_for('action_run_script') }}" formmethod="get">
+ <input class="btn btn-light dropdown-item{% block nav_run_cmd %}{% endblock %}" type="submit" value="{{ _('Cmd') }}"
+ form="scopesForm" formaction="{{ url_for('action_run_cmd') }}" formmethod="get">
<input class="btn btn-light dropdown-item{% block nav_display_output %}{% endblock %}" type="submit" value="{{ _('Display output') }}"
form="scopesForm" formaction="{{ url_for('action_script_display_output') }}" formmethod="get">
</div>