diff options
author | Simon Rettberg | 2021-02-18 16:26:47 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-02-18 16:26:47 +0100 |
commit | 1b5ecd7071f96555c62689878381eecb6e93c994 (patch) | |
tree | cb30a40fccd767342d5a72c543a9d7f0f6c9f295 /modules-available/statistics/templates/clientlist.html | |
parent | [statistics] Store ID45 live stats (diff) | |
download | slx-admin-1b5ecd7071f96555c62689878381eecb6e93c994.tar.gz slx-admin-1b5ecd7071f96555c62689878381eecb6e93c994.tar.xz slx-admin-1b5ecd7071f96555c62689878381eecb6e93c994.zip |
[statistics] Add soft-delete feature: Resets a client's IP and location
Soft-deleting a client doesn't remove its entire data and usage history
from the database, but just resets IP and location, so it doesn't appear
in its former location anymore.
In case a client is removed from a room, this declutters the client
statistics. Once the client boots again, location and and IP address
will be updated again.
Diffstat (limited to 'modules-available/statistics/templates/clientlist.html')
-rw-r--r-- | modules-available/statistics/templates/clientlist.html | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/modules-available/statistics/templates/clientlist.html b/modules-available/statistics/templates/clientlist.html index 19fbaaa4..af349437 100644 --- a/modules-available/statistics/templates/clientlist.html +++ b/modules-available/statistics/templates/clientlist.html @@ -146,8 +146,9 @@ <span class="glyphicon glyphicon-refresh"></span> {{lang_reset}} </button> - <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"> + <div class="btn-group"> + <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}} <span class="caret"></span> @@ -172,7 +173,7 @@ </ul> </div> {{#rebootcontrol}} - <div class="dropdown" style="display:inline"> + <div class="btn-group"> <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> @@ -212,11 +213,27 @@ </div> {{/rebootcontrol}} {{#canDelete}} + <div class="btn-group"> <button type="submit" name="action" value="delmachines" class="btn btn-danger btn-machine-action" data-confirm="{{lang_sureDeletePermanent}}"> <span class="glyphicon glyphicon-trash"></span> {{lang_delete}} </button> + <button type="button" class="btn btn-danger 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"> + <button type="submit" name="action" value="clear-machines" class="btn btn-danger btn-machine-action" + data-confirm="{{lang_sureClearIp}}"> + <span class="glyphicon glyphicon-refresh"></span> + {{lang_resetClearIp}} + </button> + </div> + </div> + </div> {{/canDelete}} </div> <div class="hidden" id="confirm-reboot"> |