summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
authorSimon Rettberg2019-12-17 15:48:47 +0100
committerSimon Rettberg2019-12-17 15:48:47 +0100
commit9bf88cb16fc232d0c94465454d94cf3461308193 (patch)
tree9fe8d6b5f7d15f4284e1bfc8115433b7dd9d0781 /modules-available
parent[statistics] Add WOL/exec button to machine details (diff)
downloadslx-admin-9bf88cb16fc232d0c94465454d94cf3461308193.tar.gz
slx-admin-9bf88cb16fc232d0c94465454d94cf3461308193.tar.xz
slx-admin-9bf88cb16fc232d0c94465454d94cf3461308193.zip
[statistics] Group remote actions in dropdown menu
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/statistics/templates/clientlist.html66
1 files changed, 39 insertions, 27 deletions
diff --git a/modules-available/statistics/templates/clientlist.html b/modules-available/statistics/templates/clientlist.html
index 47be4dd0..dae09e2b 100644
--- a/modules-available/statistics/templates/clientlist.html
+++ b/modules-available/statistics/templates/clientlist.html
@@ -132,7 +132,7 @@
<span class="glyphicon glyphicon-refresh"></span>
{{lang_reset}}
</button>
- <span class="dropdown">
+ <div class="dropdown" style="display:inline">
<button class="btn btn-default dropdown-toggle btn-machine-action" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true">
<span class="glyphicon glyphicon-list"></span>
{{lang_listDropdown}}
@@ -156,34 +156,46 @@
{{lang_uuid}}
</a></li>
</ul>
- </span>
+ </div>
{{#rebootcontrol}}
- {{#canShutdown}}
- <button type="submit" name="action" value="shutdownmachines" class="btn btn-danger btn-machine-action"
- data-confirm="{{lang_shutdownConfirm}}" data-title="{{lang_shutdown}}">
- <span class="glyphicon glyphicon-off"></span>
- {{lang_shutdown}}
- </button>
- {{/canShutdown}}
- {{#canReboot}}
- <button type="submit" name="action" value="rebootmachines" class="btn btn-warning btn-machine-action"
- data-confirm="#confirm-reboot">
- <span class="glyphicon glyphicon-repeat"></span>
- {{lang_reboot}}
+ <div class="dropdown" style="display:inline">
+ <button class="btn btn-default dropdown-toggle btn-machine-action" type="button" id="dropdownMenu2"
+ data-toggle="dropdown" aria-haspopup="true">
+ <span class="glyphicon glyphicon-list"></span>
+ {{lang_remoteActions}}
+ <span class="caret"></span>
</button>
- {{/canReboot}}
- {{#canWol}}
- <button type="submit" name="action" value="wol" class="btn btn-primary btn-machine-action">
- <span class="glyphicon glyphicon-bell"></span>
- {{lang_wakeOnLan}}
- </button>
- {{/canWol}}
- {{#canExec}}
- <button type="submit" name="action" value="prepare-exec" class="btn btn-primary btn-machine-action">
- <span class="glyphicon glyphicon-play"></span>
- {{lang_remoteExec}}
- </button>
- {{/canExec}}
+ <div class="dropdown-menu" style="padding:0" aria-labelledby="dropdownMenu2">
+ <div class="btn-group-vertical">
+ {{#canShutdown}}
+ <button type="submit" name="action" value="shutdownmachines" class="btn btn-danger btn-machine-action"
+ data-confirm="{{lang_shutdownConfirm}}" data-title="{{lang_shutdown}}">
+ <span class="glyphicon glyphicon-off"></span>
+ {{lang_shutdown}}
+ </button>
+ {{/canShutdown}}
+ {{#canReboot}}
+ <button type="submit" name="action" value="rebootmachines" class="btn btn-warning btn-machine-action"
+ data-confirm="#confirm-reboot">
+ <span class="glyphicon glyphicon-repeat"></span>
+ {{lang_reboot}}
+ </button>
+ {{/canReboot}}
+ {{#canWol}}
+ <button type="submit" name="action" value="wol" class="btn btn-primary btn-machine-action">
+ <span class="glyphicon glyphicon-bell"></span>
+ {{lang_wakeOnLan}}
+ </button>
+ {{/canWol}}
+ {{#canExec}}
+ <button type="submit" name="action" value="prepare-exec" class="btn btn-primary btn-machine-action">
+ <span class="glyphicon glyphicon-play"></span>
+ {{lang_remoteExec}}
+ </button>
+ {{/canExec}}
+ </div>
+ </div>
+ </div>
{{/rebootcontrol}}
{{#canDelete}}
<button type="submit" name="action" value="delmachines" class="btn btn-danger btn-machine-action"