1*b1289ec9SAppaRao Puli<loader loading="loading"></loader>
2*b1289ec9SAppaRao Puli<div id="sys-log">
3*b1289ec9SAppaRao Puli    <section id="sys-log__events" class="table row column">
4*b1289ec9SAppaRao Puli      <div class="row column">
5*b1289ec9SAppaRao Puli        <h1>System Logs</h1>
6*b1289ec9SAppaRao Puli        <div class="page-header">
7*b1289ec9SAppaRao Puli          <p class="inline h4">Select system log type: </p>
8*b1289ec9SAppaRao Puli          <div class="inline dropdown__wrapper" >
9*b1289ec9SAppaRao Puli            <button type="button" class="dropdown__button" ng-click="showLogDropdown = !showLogDropdown"><strong>{{selectedRecordType}}</strong></button>
10*b1289ec9SAppaRao Puli            <ul class="dropdown__list inline" ng-show="showLogDropdown">
11*b1289ec9SAppaRao Puli              <li ng-repeat="recordType in recordTypeList">
12*b1289ec9SAppaRao Puli                <button type="button" ng-click="selectRecordType(recordType);">{{recordType}}</button>
13*b1289ec9SAppaRao Puli              </li>
14*b1289ec9SAppaRao Puli            </ul>
15*b1289ec9SAppaRao Puli          </div>
16*b1289ec9SAppaRao Puli          <a ng-href="data:text/json;charset=utf-8,{{sysLogs}}" class="inline btn-export float-right"  download="systemLogs.json" ng-show="sysLogs.length">Export </a>
17*b1289ec9SAppaRao Puli          <button class="inline clear-input float-right btn-secondary" ng-click="confirm = !confirm" ng-show="sysLogs.length">&#10005; Clear {{selectedRecordType}} Logs</button>
18*b1289ec9SAppaRao Puli          <div class="inline__confirm event__confirm" ng-show="confirm">
19*b1289ec9SAppaRao Puli            <div class="inline__confirm-message">
20*b1289ec9SAppaRao Puli              <p class="h3">Are you sure you want to <strong class="ng-binding">clear {{selectedRecordType}} logs</strong>?
21*b1289ec9SAppaRao Puli              </p>
22*b1289ec9SAppaRao Puli            </div>
23*b1289ec9SAppaRao Puli            <div class="inline__confirm-buttons">
24*b1289ec9SAppaRao Puli              <button class="btn-primary" ng-click="clearSystemLogEntries()">Yes</button>
25*b1289ec9SAppaRao Puli              <button class="btn-primary" ng-click="confirm = false">No</button>
26*b1289ec9SAppaRao Puli            </div>
27*b1289ec9SAppaRao Puli          </div>
28*b1289ec9SAppaRao Puli        </div>
29*b1289ec9SAppaRao Puli      </div>
30*b1289ec9SAppaRao Puli    </section>
31*b1289ec9SAppaRao Puli    <section class="row column">
32*b1289ec9SAppaRao Puli      <p class="content-label">Filter {{selectedRecordType}} Logs</p>
33*b1289ec9SAppaRao Puli      <div class="content__search">
34*b1289ec9SAppaRao Puli        <label for="content__search-input">Search</label>
35*b1289ec9SAppaRao Puli        <input id="content__search-input" type="text" ng-model="customSearch" ng-keydown="doSearchOnEnter($event)"/>
36*b1289ec9SAppaRao Puli        <div class="search-submit__wrapper">
37*b1289ec9SAppaRao Puli          <button class="clear-input" ng-click="clear()">&#10005;</button>
38*b1289ec9SAppaRao Puli          <input id="content__search-submit" type="submit" class="btn btn-primary content__search-submit" value="Filter" ng-click="doSearchOnClick()"/>
39*b1289ec9SAppaRao Puli        </div>
40*b1289ec9SAppaRao Puli      </div>
41*b1289ec9SAppaRao Puli    </section>
42*b1289ec9SAppaRao Puli    <section id="sys-log__events" class="table row column" ng-show="sysLogs.length">
43*b1289ec9SAppaRao Puli      <div class="table row column">
44*b1289ec9SAppaRao Puli        <div class="table__head">
45*b1289ec9SAppaRao Puli          <div class="table__row">
46*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper sys-log__col-id">
47*b1289ec9SAppaRao Puli              <div class="column small-2 sort_button_wrapper">
48*b1289ec9SAppaRao Puli                <button class="sort-ascending" ng-click="sortBy('Id', false)"></button>
49*b1289ec9SAppaRao Puli                <button class="sort-descending" ng-click="sortBy('Id', true)"></button>
50*b1289ec9SAppaRao Puli              </div>
51*b1289ec9SAppaRao Puli              ID
52*b1289ec9SAppaRao Puli            </div>
53*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper">
54*b1289ec9SAppaRao Puli              <div class="column small-2 sort_button_wrapper">
55*b1289ec9SAppaRao Puli                <button class="sort-ascending" ng-click="sortBy('Created', false)"></button>
56*b1289ec9SAppaRao Puli                <button class="sort-descending" ng-click="sortBy('Created', true)"></button>
57*b1289ec9SAppaRao Puli              </div>
58*b1289ec9SAppaRao Puli              Timestamp
59*b1289ec9SAppaRao Puli            </div>
60*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper">
61*b1289ec9SAppaRao Puli              <div class="column small-2 sort_button_wrapper">
62*b1289ec9SAppaRao Puli                <button class="sort-ascending" ng-click="sortBy('Name', false)"></button>
63*b1289ec9SAppaRao Puli                <button class="sort-descending" ng-click="sortBy('Name', true)"></button>
64*b1289ec9SAppaRao Puli              </div>
65*b1289ec9SAppaRao Puli              Name
66*b1289ec9SAppaRao Puli            </div>
67*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper">
68*b1289ec9SAppaRao Puli              <div class="column small-2 sort_button_wrapper">
69*b1289ec9SAppaRao Puli                <button class="sort-ascending" ng-click="sortBy('SensorType', false)"></button>
70*b1289ec9SAppaRao Puli                <button class="sort-descending" ng-click="sortBy('SensorType', true)"></button>
71*b1289ec9SAppaRao Puli              </div>
72*b1289ec9SAppaRao Puli              Type
73*b1289ec9SAppaRao Puli            </div>
74*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper sys-log__col-sev">
75*b1289ec9SAppaRao Puli              <div class="column small-2 sort_button_wrapper">
76*b1289ec9SAppaRao Puli                <button class="sort-ascending" ng-click="sortBy('Severity', false)"></button>
77*b1289ec9SAppaRao Puli                <button class="sort-descending" ng-click="sortBy('Severity', true)"></button>
78*b1289ec9SAppaRao Puli              </div>
79*b1289ec9SAppaRao Puli              Severity
80*b1289ec9SAppaRao Puli            </div>
81*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper sys-log__col-desc">Description</div>
82*b1289ec9SAppaRao Puli          </div>
83*b1289ec9SAppaRao Puli        </div>
84*b1289ec9SAppaRao Puli        <div class="table__body">
85*b1289ec9SAppaRao Puli          <div class="table__row" dir-paginate="log in (sysLogs | filter:filterBySearchTerms | orderBy:sortKey:reverse) | itemsPerPage:itemsPerPage">
86*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper sys-log__col-id">{{log.Id}}</div>
87*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper">{{log.Created | localeDate}}</div>
88*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper">{{log.Name}}</div>
89*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper">{{log.SensorType}}</div>
90*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper sys-log__col-sev">{{log.Severity}}</div>
91*b1289ec9SAppaRao Puli            <div class="table__cell sys-log__col-wrapper sys-log__col-desc">{{log.Message}}</div>
92*b1289ec9SAppaRao Puli          </div>
93*b1289ec9SAppaRao Puli        </div>
94*b1289ec9SAppaRao Puli      </div>
95*b1289ec9SAppaRao Puli      <dir-pagination-controls></dir-pagination-controls>
96*b1289ec9SAppaRao Puli    </section>
97*b1289ec9SAppaRao Puli    <section id="sys-log__events" class="table row column" ng-show="!sysLogs.length">
98*b1289ec9SAppaRao Puli      <p>There are no {{selectedRecordType}} logs to display at this time.</p>
99*b1289ec9SAppaRao Puli    </section>
100*b1289ec9SAppaRao Puli</div> <!-- end event log -->
101