diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-11-26 11:26:22 +0100 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-11-27 14:45:34 +0100 |
commit | 76fe1b775a2fdad4ee7b8d04f2a71778f693d8e4 (patch) | |
tree | f9dbe020973ad8f242c57231d5861a05c76733bc /ogcp/forms | |
parent | 92ab31650c60163607ea5b00c57a7b223ef49bd4 (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/forms')
-rw-r--r-- | ogcp/forms/action_forms.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index 49c9f60..24424a1 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -172,6 +172,11 @@ class RunScriptForm(FlaskForm): arguments = StringField(label=_l('Arguments')) submit = SubmitField(label=_l('Submit')) +class RunCmdForm(FlaskForm): + ips = HiddenField() + command = StringField(label=_l('Command')) + submit = SubmitField(label=_l('Submit')) + class ImportClientsForm(FlaskForm): server = HiddenField() room = SelectField(label=_l('Room')) |