diff options
author | Simon Rettberg | 2022-11-11 15:41:44 +0100 |
---|---|---|
committer | Simon Rettberg | 2022-11-11 15:41:44 +0100 |
commit | aaa81e0a26085f58e5cd3290950c44f7b0f6c02f (patch) | |
tree | 25da4d09edf9de04db025928797bda011fdec343 /modules-available/statistics/templates/clientlist.html | |
parent | [statistics] Client list: Add option to hide columns (diff) | |
download | slx-admin-aaa81e0a26085f58e5cd3290950c44f7b0f6c02f.tar.gz slx-admin-aaa81e0a26085f58e5cd3290950c44f7b0f6c02f.tar.xz slx-admin-aaa81e0a26085f58e5cd3290950c44f7b0f6c02f.zip |
[statistics] Add ID45 column to client list
Diffstat (limited to 'modules-available/statistics/templates/clientlist.html')
-rw-r--r-- | modules-available/statistics/templates/clientlist.html | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules-available/statistics/templates/clientlist.html b/modules-available/statistics/templates/clientlist.html index 721617a9..b33eafa3 100644 --- a/modules-available/statistics/templates/clientlist.html +++ b/modules-available/statistics/templates/clientlist.html @@ -32,6 +32,7 @@ <span class="glyphicon glyphicon-filter"></span> </button> </td> + <td></td> <td> <button type="button" class="btn btn-default btn-xs" onclick="popupFilter('realcores')"> <span class="glyphicon glyphicon-filter"></span> @@ -56,6 +57,7 @@ <th data-sort="string">{{lang_kvmSupport}}</th> <th data-sort="int" class="text-right">{{lang_gbRam}}</th> <th data-sort="int" class="text-right">{{lang_tmpGb}}</th> + <th data-sort="int" class="text-right">{{lang_persistentPart}}</th> <th data-sort="int">{{lang_cpuModel}}</th> <th data-sort="string">{{lang_location}}</th> </tr> @@ -144,6 +146,9 @@ </span> </div>{{/hddcount}} </td> + <td data-sort-value="{{gbpersist}}" class="text-right"> + {{gbpersist}} GiB + </td> <td data-sort-value="{{realcores}}">{{lang_realCores}}: {{realcores}}<div class="small">{{cpumodel}}</div></td> <td data-sort-value="{{location.sort}}">{{location.name}}</td> </tr> @@ -361,7 +366,7 @@ document.addEventListener("DOMContentLoaded", function () { idx++; var $th = $(this); $cs.append($('<div class="checkbox">') - .append($('<input id="shc-' + idx + '" type="checkbox" onclick="toggleColumn(' + idx + ')" checked="checked">')) + .append($('<input id="shc-' + idx + '" type="checkbox" onclick="toggleColumn(this, ' + idx + ')" checked="checked">')) .append($('<label for="shc-' + idx + '">').text($th.text()))); }); // Load previous visibility settings @@ -381,9 +386,9 @@ document.addEventListener("DOMContentLoaded", function () { } }); -function toggleColumn(idx) +function toggleColumn(e, idx) { - var $el = $(this); + var $el = $(e); $('#client-list tr > td:nth-child(' + idx + '), #client-list tr > th:nth-child(' + idx + ')') .css('display', $el.is(':checked') ? '' : 'none'); var data = {}; |