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