diff options
| author | Ed Tanous <ed.tanous@intel.com> | 2017-06-28 09:43:09 -0700 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2017-06-28 09:43:09 -0700 |
| commit | 5fceeb4563c08468e9623cef1e3d7f4de9373d2f (patch) | |
| tree | 6854993a288f126465e6bd3b089e7090aef7409e /static/partial-sensor.html | |
| parent | 7b4e3dae0477703143b8cb28b3a6abc9d4d0d83b (diff) | |
| download | bmcweb-5fceeb4563c08468e9623cef1e3d7f4de9373d2f.tar.gz bmcweb-5fceeb4563c08468e9623cef1e3d7f4de9373d2f.zip | |
update sensor page
Diffstat (limited to 'static/partial-sensor.html')
| -rw-r--r-- | static/partial-sensor.html | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/static/partial-sensor.html b/static/partial-sensor.html index 3486a63..4503312 100644 --- a/static/partial-sensor.html +++ b/static/partial-sensor.html @@ -1,25 +1,43 @@ <div class="container" ng-controller="sensorController"> <div class="row"> - <div class="col-lg-8"> + <div class="col-md-12"> <div class="box box-primary"> <div class="box-header with-border"> <h4>Summary - <h4> - </div> - <div class="box-body"> - <table class="table table-striped system-status-table"> + </h4> + <div class="pull-right"> + <select class="form-control show-tick" title="Rows on page" selectpicker ng-model="smartTablePageSize" ng-options="i for i in [5,10,25,50,100,500]"> + </select> + </div> + <div class="horizontal-scroll box-body"> </div> + + <table class="table table-striped system-status-table" st-table="smartTableData" st-safe-src="rowCollection"> <thead> + <tr class="sortable "> + <th class="table-id" st-sort="id" st-sort-default="true">#</th> + <th st-sort="name">Name</th> + <th st-sort="value">Value</th> + </tr> <tr> - <th>Sensor</th> - <th>Value</th> + <th></th> + <th><input st-search="name" placeholder="Search Name" class="input-sm form-control search-input" type="search" /></th> + <th><input st-search="value" placeholder="Search Value" class="input-sm form-control search-input" type="search" /></th> </tr> </thead> <tbody> - <tr ng-animate="'animate'" ng-repeat="(sensor_name, value) in sensor_values"> - <td class="fit">{{ sensor_name }}</td> - <td class="fit">{{ value }}</td> + <tr ng-repeat="item in smartTableData"> + <td class="table-id">{{item.id}}</td> + <td>{{item.name}}</td> + <td>{{item.value}}</td> </tr> </tbody> + <tfoot> + <tr> + <td colspan="6" class="text-center"> + <div st-pagination="" st-items-by-page="smartTablePageSize" st-displayed-pages="7"></div> + </td> + </tr> + </tfoot> </table> </div> </div> |

