www/js/set_devices.js

changeset 712
93a87fe230cc
parent 703
344470c6bb1c
child 714
24749c296a50
--- a/www/js/set_devices.js	Thu Apr 25 16:44:54 2024 +0200
+++ b/www/js/set_devices.js	Sun Apr 28 14:25:26 2024 +0200
@@ -195,13 +195,15 @@
    });
   },
   columns: [
-   { text: 'Address', datafield: 'address', width: 200 },
-   { text: 'Sub', datafield: 'subdevice', width: 60 },
+   { text: 'Address', datafield: 'address', width: 180 },
+   { text: 'Sub', datafield: 'subdevice', width: 50 },
+   { text: 'Present', datafield: 'present', width: 80 },
    { text: 'Type', datafield: 'type', width: 100 },
-   { text: 'Direction', datafield: 'direction', width: 120 },
+   { text: 'Direction', datafield: 'direction', width: 110 },
    { text: 'Value', datafield: 'value', width: 80 },
+   { text: 'Used', datafield: 'inuse', width: 60 },
    { text: 'Description', datafield: 'description' },
-   { text: 'Last change', datafield: 'timestamp', width: 200,
+   { text: 'Last change', datafield: 'timestamp', width: 190,
      cellsrenderer: function(index, datafield, value, defaultvalue, column, rowdata) {
       var date = new Date((value * 1000) - tzoffset).toISOString().slice(0, 19).replace("T", " ");
       return '<span style="margin: 3px; margin-top: 6px; float: left;">' +  date + '</span>';

mercurial