diff options
author | Simon Rettberg | 2019-12-07 13:52:54 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-12-07 13:52:54 +0100 |
commit | 3e45ec44d22f03ca6642e08f695c6d7274cecfaf (patch) | |
tree | a71b2ec81895b198757d8ec7272548b42ee074b8 /modules-available/rebootcontrol/templates/status-wol.html | |
parent | [apis/cron] Simple logging function for debugging (diff) | |
download | slx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.tar.gz slx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.tar.xz slx-admin-3e45ec44d22f03ca6642e08f695c6d7274cecfaf.zip |
[statistics/rebootcontrol] Add WOL button to statistics module
* Overhauled task display in rebootcontrol module
* Can only add subnets by CIDR now instead of start and end
Diffstat (limited to 'modules-available/rebootcontrol/templates/status-wol.html')
-rw-r--r-- | modules-available/rebootcontrol/templates/status-wol.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/modules-available/rebootcontrol/templates/status-wol.html b/modules-available/rebootcontrol/templates/status-wol.html new file mode 100644 index 00000000..da19b57d --- /dev/null +++ b/modules-available/rebootcontrol/templates/status-wol.html @@ -0,0 +1,52 @@ +{{#locations}} +<div class="loc">{{name}}</div> +{{/locations}} +<div class="clearfix slx-space"></div> + +{{#tasks}} +<div data-tm-id="{{id}}" data-tm-callback="wolCallback">{{lang_aWolJob}}</div> +{{/tasks}} +{{^tasks}} +<div class="alert alert-warning"> + <span class="glyphicon glyphicon-exclamation-sign"></span> + {{lang_noTasksForJob}} +</div> +{{/tasks}} + +<pre>{{log}}</pre> + +<table class="table table-hover stupidtable" id="dataTable"> + <thead> + <tr> + <th data-sort="string">{{lang_client}}</th> + <th data-sort="ipv4">{{lang_ip}}</th> + <th data-sort="string"> + {{lang_status}} + </th> + </tr> + </thead> + + <tbody> + {{#clients}} + <tr> + <td>{{hostname}}{{^hostname}}{{machineuuid}}{{^machineuuid}}{{clientip}}{{/machineuuid}}{{/hostname}}</td> + <td>{{clientip}}</td> + {{#machineuuid}} + <td> + <span id="status-{{machineuuid}}" class="machineuuid" data-uuid="{{machineuuid}}"></span> + <span id="spinner-{{machineuuid}}" class="glyphicon glyphicon-refresh slx-rotation"> + </td> + {{/machineuuid}} + {{^machineuuid}} + <td></td> + {{/machineuuid}} + </tr> + {{/clients}} + </tbody> +</table> + +<script><!-- +function wolCallback(task) { + stillActive = true; +} +//--></script>
\ No newline at end of file |