Ed Tanous | 904063f | 2017-03-02 16:48:24 -0800 | [diff] [blame] | 1 | <div class="container" ng-controller="selController"> |
| 2 | <div class="row"> |
| 3 | |
| 4 | <table class="table table-striped table-condensed"> |
| 5 | <thead> |
| 6 | <tr> |
| 7 | <th class="fit">ID</th> |
| 8 | <th class="fit">Timestamp</th> |
| 9 | <th class="fit">Sensor Name</th> |
| 10 | <th class="fit"> |
| 11 | <!-- Controller button --> |
| 12 | <div class="btn-group" style="cursor: pointer; cursor: hand;" uib-dropdown is-open="status.isopen" auto-close="outsideClick"> |
| 13 | <div id="single-button" type="button" class="" uib-dropdown-toggle> |
| 14 | Controller <span class="caret"></span> |
| 15 | </div> |
| 16 | <ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="dropdownMenu"> |
| 17 | <li role="menuitem"><a data-ng-click="checkAll()"><i class="fa fa-check-circle"></i> Check All</a></li> |
| 18 | <li role="menuitem"><a data-ng-click="uncheckAll()"><i class="fa fa-times-circle"></i> Uncheck All</a></li> |
| 19 | <li class="divider"></li> |
| 20 | <li role="menuitem" data-ng-repeat="company in unique_columns.controller"> <a data-ng-click="setSelectedController()">{{company}}<span data-ng-class="isChecked(company)"></span></a> |
| 21 | </li> |
| 22 | </ul> |
| 23 | </div> |
| 24 | </th> |
| 25 | <th class="fit">Severity</th> |
| 26 | <th class="fit">Sensor Type</th> |
| 27 | <th>Description</th> |
| 28 | </tr> |
| 29 | </thead> |
| 30 | <tbody> |
| 31 | <tr ng-repeat="entry in filtered_and_sliced_sel"> |
| 32 | <td class="fit">{{ entry.id }}</td> |
| 33 | <td class="fit">{{ entry.timestamp * 1000 | date : 'yyyy-MM-dd HH:mm:ss'}}</td> |
| 34 | <td class="fit">Sensor Name</td> |
| 35 | <td class="fit">{{ entry.generator_name }}</td> |
| 36 | <td class="fit">{{ entry.event_severity }}</td> |
| 37 | <td class="fit">{{ entry.sensor_type_string }}</td> |
| 38 | <td>{{ entry.description_string }}</td> |
| 39 | </tr> |
| 40 | </tbody> |
| 41 | </table> |
| 42 | |
| 43 | </div> |
| 44 | <pagination uib-pagination |
| 45 | ng-model="current_page" |
| 46 | items-per-page="items_per_page" |
| 47 | total-items="filtered_sel.length" |
| 48 | max-size="max_size" |
| 49 | boundary-links="true" |
| 50 | boundary-link-numbers="true" rotate="true" force-ellipses="true"> |
| 51 | </pagination> |
| 52 | |
| 53 | </div> |