1<div id="sensors-overview"> 2 <div class="row column"> 3 <h1>Sensors</h1> 4 </div> 5 <section class="row column"> 6 <div class="page-header"> 7 <h2 class="inline h4">All sensors present in the system</h2> 8 <a ng-href="data:text/json;charset=utf-8,{{export_data}}" class="inline btn-export float-right" download="{{export_name}}">Export</a> 9 </div> 10 </section> 11 <section class="row column"> 12 <!-- search --> 13 <p class="content-label" aria-label="sensors filter">Filter sensors</p> 14 <div class="content__search"> 15 <label for="content__search-input">Sensors Search</label> 16 <input id="content__search-input" type="text" ng-model="customSearch" ng-keydown="doSearchOnEnter($event)"/> 17 <div class="search-submit__wrapper"> 18 <button class="clear-input" ng-click="customSearch = ''">✕</button> 19 <input id="content__search-submit" type="submit" class="btn btn-primary content__search-submit" value="Filter" ng-click="doSearchOnClick()"/> 20 </div> 21 </div> 22 <div class="toggle-filter"> 23 <p class="content-label">FILTER BY SEVERITY</p> 24 <button class="inline first btn-primary" ng-click="toggleSeverityAll()" 25 ng-class="selectedSeverity.all ? 'btn-primary' : 'btn-secondary'">All 26 </button> 27 <button class="inline " ng-click="toggleSeverity('critical')" 28 ng-class="selectedSeverity.critical ? 'btn-primary' : 'btn-secondary'">Critical 29 </button> 30 <button class="inline" ng-click="toggleSeverity('warning')" 31 ng-class="selectedSeverity.warning ? 'btn-primary' : 'btn-secondary'">Warning 32 </button> 33 </div> 34 35 </section> <!-- end search --> 36 37 <section id="sensor-categories" class="row column"> 38 <div class="row column header-row"> 39 <div class="column large-12 header__actions-bar"> 40 <p class="inline sensor__title">Sensors</p> 41 <p class="inline sensor__reading">Low critical</p> 42 <p class="inline sensor__reading">Low warning</p> 43 <p class="inline sensor__reading sensor__heading-current">Current</p> 44 <p class="inline sensor__reading">High warning</p> 45 <p class="inline sensor__reading">High critical</p> 46 </div> 47 </div> 48 <!-- sensor --> 49 <div class="sensor__readings-row" ng-repeat="sensor in (filteredSensorData = data|filter:filterBySeverity|filter:filterBySearchTerms|orderBy:'-order')"> 50 <p class="inline sensor__title"><span class="icon" ng-class="{'icon__critical': sensor.status == 'critical', 'icon__warning': sensor.status == 'warning', 'icon__normal': sensor.status == 'normal'}" aria-label="sensor.status" ></span>{{sensor.title}}</p> 51 <p class="inline sensor__reading"><span class="sensor__label">Low critical</span>{{sensor.CriticalLow}}<span class="content-label">{{sensor.unit}}<span ng-if="sensor.unit == 'C'">°</span></p> 52 <p class="inline sensor__reading"><span class="sensor__label">Low warning</span>{{sensor.WarningLow}}<span class="content-label">{{sensor.unit}}<span ng-if="sensor.unit == 'C'">°</span></p> 53 <p class="inline sensor__reading sensor__current" ng-class="{'sensor__critical': sensor.status == 'critical', 'sensor__warn': sensor.status == 'warning', 'sensor__normal': sensor.status == 'normal'}"><span class="sensor__label">Current</span>{{sensor.Value}}<span class="content-label">{{sensor.unit}}<span ng-if="sensor.unit == 'C'">°</span></span></p> 54 <p class="inline sensor__reading"><span class="sensor__label">High warning</span>{{sensor.WarningHigh}}<span class="content-label">{{sensor.unit}}<span ng-if="sensor.unit == 'C'">°</span></p> 55 <p class="inline sensor__reading"><span class="sensor__label">High critical</span>{{sensor.CriticalHigh}}<span class="content-label">{{sensor.unit}}<span ng-if="sensor.unit == 'C'">°</span></p> 56 </div> 57 </section> 58</div> 59