diff options
author | Simon Rettberg | 2017-08-10 15:56:58 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-08-10 15:56:58 +0200 |
commit | 9abacc2da789048a83953da5622a6e588bb432a4 (patch) | |
tree | ee3b98760bc5b23b64a722fb92d7cbbce3fb7beb /modules-available/runmode/templates/module-machine-list.html | |
parent | [baseconfig] PHP 7 compat (diff) | |
download | slx-admin-9abacc2da789048a83953da5622a6e588bb432a4.tar.gz slx-admin-9abacc2da789048a83953da5622a6e588bb432a4.tar.xz slx-admin-9abacc2da789048a83953da5622a6e588bb432a4.zip |
[runmode] Add isclient property per client, implement overview page
Diffstat (limited to 'modules-available/runmode/templates/module-machine-list.html')
-rw-r--r-- | modules-available/runmode/templates/module-machine-list.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/modules-available/runmode/templates/module-machine-list.html b/modules-available/runmode/templates/module-machine-list.html new file mode 100644 index 00000000..a749a4a7 --- /dev/null +++ b/modules-available/runmode/templates/module-machine-list.html @@ -0,0 +1,44 @@ +<h2> + {{lang_specialMachinesForMode}}: + <a href="?do={{module}}">{{modulename}}</a> +</h2> + +<form method="post" action="?do=runmode" onclick="return confirm('{{lang_confirmDelete}}')"> + <input type="hidden" name="token" value="{{token}}"> + <input type="hidden" name="action" value="delete-machine"> + <table class="table"> + <tr> + <th>{{lang_machine}}</th> + <th>{{lang_mode}}</th> + <th class="slx-smallcol">{{lang_isclient}}</th> + <th class="slx-smallcol">{{lang_delete}}</th> + </tr> + {{#list}} + <tr> + <td> + <div class="slx-bold" title="{{clientip}}"><a + href="?do=statistics&uuid={{machineuuid}}">{{hostname}}</a></div> + <div class="small">{{machineuuid}}</div> + </td> + <td> + {{#mode_name}} + <div>{{mode_name}}</div> + <div class="small">{{modeid}}</div> + {{/mode_name}} + {{^mode_name}} + <div>{{modeid}}</div> + {{/mode_name}} + </td> + <td class="text-center"> + {{#isclient}} + <span class="glyphicon glyphicon-check text-success"></span> + {{/isclient}} + </td> + <td class="text-center"> + <button class="btn btn-danger btn-sm" name="machineuuid" value="{{machineuuid}}"><span + class="glyphicon glyphicon-remove"></span></button> + </td> + </tr> + {{/list}} + </table> +</form>
\ No newline at end of file |