1428375e8SMichael Davis<loader loading="loading"></loader>
2cd789508SIftekharul Islam<div id="sensors-overview">
3cd789508SIftekharul Islam	<div class="row column">
42c16effeSMichael Davis		<h1>Sensors</h1>
5cd789508SIftekharul Islam	</div>
6cd789508SIftekharul Islam	<section class="row column">
7cd789508SIftekharul Islam		<div class="page-header">
88947e701SIftekharul Islam			<h2 class="inline h4">All sensors present in the system</h2>
98947e701SIftekharul Islam			<a ng-href="data:text/json;charset=utf-8,{{export_data}}" class="inline btn-export float-right" download="{{export_name}}">Export</a>
10cd789508SIftekharul Islam		</div>
11cd789508SIftekharul Islam	</section>
12cd789508SIftekharul Islam	<section class="row column">
13cd789508SIftekharul Islam		<!-- search -->
148947e701SIftekharul Islam		<p class="content-label" aria-label="sensors filter">Filter sensors</p>
15cd789508SIftekharul Islam		<div class="content__search">
162c16effeSMichael Davis			<label for="content__search-input">Sensors Search</label>
178947e701SIftekharul Islam			<input id="content__search-input" type="text" ng-model="customSearch" ng-keydown="doSearchOnEnter($event)"/>
188b527990SMichael Davis			<div class="search-submit__wrapper">
19171c6a1eSIftekharul Islam				<button class="clear-input" ng-click="clear()">&#10005;</button>
208b527990SMichael Davis				<input id="content__search-submit" type="submit" class="btn btn-primary content__search-submit" value="Filter" ng-click="doSearchOnClick()"/>
218b527990SMichael Davis			</div>
22a547ff42SIftekharul Islam
23cd789508SIftekharul Islam		</div>
24cd789508SIftekharul Islam		<div class="toggle-filter">
258947e701SIftekharul Islam			<p class="content-label">FILTER BY SEVERITY</p>
26d2269e22SIftekharul Islam			<button class="inline first btn-primary" ng-click="toggleSeverityAll()"
27d2269e22SIftekharul Islam					ng-class="selectedSeverity.all ? 'btn-primary' : 'btn-secondary'">All
28cd789508SIftekharul Islam			</button>
29d2269e22SIftekharul Islam			<button class="inline " ng-click="toggleSeverity('critical')"
30d2269e22SIftekharul Islam					ng-class="selectedSeverity.critical ? 'btn-primary' : 'btn-secondary'">Critical
31cd789508SIftekharul Islam			</button>
32d2269e22SIftekharul Islam			<button class="inline" ng-click="toggleSeverity('warning')"
33d2269e22SIftekharul Islam					ng-class="selectedSeverity.warning ? 'btn-primary' : 'btn-secondary'">Warning
34cd789508SIftekharul Islam			</button>
35cd789508SIftekharul Islam		</div>
36cd789508SIftekharul Islam
37cd789508SIftekharul Islam	</section> <!-- end search -->
38cd789508SIftekharul Islam
39*81a49deaSIftekharul Islam	<section class="row column" ng-show="filteredSensorData.length == 0">
40*81a49deaSIftekharul Islam		<!-- message -->
41*81a49deaSIftekharul Islam		<span ng-if="selectedSeverity.all">{{messages.NO_SENSOR_DATA}}</span>
42*81a49deaSIftekharul Islam		<span ng-if="selectedSeverity.critical">{{messages.CRITICAL_NO_SENSOR_DATA}}</span>
43*81a49deaSIftekharul Islam		<span ng-if="selectedSeverity.warning">{{messages.WARNING_NO_SENSOR_DATA}}</span>
44*81a49deaSIftekharul Islam		<!-- end message -->
45*81a49deaSIftekharul Islam	</section>
46*81a49deaSIftekharul Islam
47*81a49deaSIftekharul Islam	<section id="sensor-categories" class="row column" ng-show="filteredSensorData.length">
48cd789508SIftekharul Islam		<div class="row column header-row">
49cd789508SIftekharul Islam			<div class="column large-12 header__actions-bar">
508947e701SIftekharul Islam				<p class="inline sensor__title">Sensors</p>
518947e701SIftekharul Islam				<p class="inline sensor__reading">Low critical</p>
528947e701SIftekharul Islam				<p class="inline sensor__reading">Low warning</p>
538947e701SIftekharul Islam				<p class="inline sensor__reading sensor__heading-current">Current</p>
548947e701SIftekharul Islam				<p class="inline sensor__reading">High warning</p>
558947e701SIftekharul Islam				<p class="inline sensor__reading">High critical</p>
56cd789508SIftekharul Islam			</div>
57cd789508SIftekharul Islam		</div>
588947e701SIftekharul Islam		<!-- sensor -->
59*81a49deaSIftekharul Islam		<div class="sensor__readings-row" ng-repeat="sensor in data|filter:filterBySeverity|filter:filterBySearchTerms|orderBy:'+custom_order' as filteredSensorData">
608947e701SIftekharul Islam			<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>
618947e701SIftekharul Islam			<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'">&deg;</span></p>
628947e701SIftekharul Islam			<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'">&deg;</span></p>
638947e701SIftekharul Islam			<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'">&deg;</span></span></p>
648947e701SIftekharul Islam			<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'">&deg;</span></p>
658947e701SIftekharul Islam			<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'">&deg;</span></p>
668947e701SIftekharul Islam		</div>
67cd789508SIftekharul Islam	</section>
68cd789508SIftekharul Islam</div>