summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/templates
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/statistics/templates
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/statistics/templates')
-rw-r--r--modules-available/statistics/templates/machine-main.html24
1 files changed, 20 insertions, 4 deletions
diff --git a/modules-available/statistics/templates/machine-main.html b/modules-available/statistics/templates/machine-main.html
index be32f9c7..1139d5b9 100644
--- a/modules-available/statistics/templates/machine-main.html
+++ b/modules-available/statistics/templates/machine-main.html
@@ -153,10 +153,26 @@
</button>
{{/canWol}}
{{#canExec}}
- <button type="submit" name="action" value="prepare-exec" class="btn btn-sm btn-primary btn-machine-action">
- <span class="glyphicon glyphicon-play"></span>
- {{lang_remoteExec}}
- </button>
+ <div class="btn-group">
+ <button type="submit" name="action" value="prepare-exec" class="btn btn-sm btn-primary btn-machine-action">
+ <span class="glyphicon glyphicon-play"></span>
+ {{lang_remoteExec}}
+ </button>
+ <button type="button" class="btn btn-sm btn-primary btn-machine-action dropdown-toggle"
+ data-toggle="dropdown" aria-haspopup="true">
+ <span class="caret"></span>
+ <span class="sr-only">Toggle Dropdown</span>
+ </button>
+ <div class="dropdown-menu" style="padding:0">
+ <div class="btn-group-vertical">
+ {{#execList}}
+ <button type="submit" name="action" value="exec-preset-{{id}}" class="btn btn-danger btn-machine-action">
+ {{title}}
+ </button>
+ {{/execList}}
+ </div>
+ </div>
+ </div>
{{/canExec}}
</div>
<div class="modal fade" id="reboot-confirm" tabindex="-1" role="dialog">