summaryrefslogtreecommitdiffstats
path: root/modules-available/rebootcontrol/templates/exec-enter-command.html
diff options
context:
space:
mode:
authorSimon Rettberg2024-09-20 17:08:51 +0200
committerSimon Rettberg2024-09-20 17:08:51 +0200
commit52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168 (patch)
treea4b4b63b19c7660b4bdf4b4e9c09466da9d9a151 /modules-available/rebootcontrol/templates/exec-enter-command.html
parent[statistics] Ignore HDDS (block devices) that are too small (diff)
downloadslx-admin-52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168.tar.gz
slx-admin-52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168.tar.xz
slx-admin-52b3a02fb2dbb0eca3fb4effbe7c6b60a5ecf168.zip
[rebootcontrol/statistics] Add templates for useful remote exec commands
Diffstat (limited to 'modules-available/rebootcontrol/templates/exec-enter-command.html')
-rw-r--r--modules-available/rebootcontrol/templates/exec-enter-command.html24
1 files changed, 19 insertions, 5 deletions
diff --git a/modules-available/rebootcontrol/templates/exec-enter-command.html b/modules-available/rebootcontrol/templates/exec-enter-command.html
index 8bf81605..09eb32f5 100644
--- a/modules-available/rebootcontrol/templates/exec-enter-command.html
+++ b/modules-available/rebootcontrol/templates/exec-enter-command.html
@@ -28,12 +28,26 @@
</tbody>
</table>
- <h3>{{lang_enterCommand}}</h3>
+ {{^preset}}
+ <h3>{{lang_enterCommand}}</h3>
+ <div>
+ <label for="script-text">{{lang_scriptOrCommand}}</label>
+ <textarea id="script-text" class="form-control" name="script" rows="10"></textarea>
+ </div>
+ {{/preset}}
+
+ {{#preset}}
+ <input type="hidden" name="preset" value="{{id}}">
+ <h3>{{title}}</h3>
+ <div class="slx-space">{{lang_command}}: <i>{{command}}</i></div>
+ {{#args}}
+ <div class="row">
+ <div class="col-md-5">{{title}}</div>
+ <div class="col-md-7">{{{render}}}</div>
+ </div>
+ {{/args}}
+ {{/preset}}
- <div>
- <label for="script-text">{{lang_scriptOrCommand}}</label>
- <textarea id="script-text" class="form-control" name="script" rows="10"></textarea>
- </div>
<div class="text-right slx-space">
<button type="submit" class="btn btn-primary" name="action" value="exec">
<span class="glyphicon glyphicon-play"></span>