blob: 7bf13e5e5cb241ecf1388bc105e85196ef6859b9 [file] [log] [blame]
Michael Davis428375e2017-08-01 15:48:34 -05001<loader loading="loading"></loader>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -05002<div id="event-log">
3 <div class="row column">
Michael Davise126be72017-05-08 11:20:12 -05004 <h1>Event log</h1>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -05005 </div>
Iftekharul Islama547ff42017-08-09 11:20:15 -05006 <section class="row column">
Iftekharul Islam8b4828a2017-04-19 14:37:55 -05007 <div class="page-header">
Michael Davisc1530fa2017-07-20 14:11:45 -05008 <h2 class="inline h4">All events from the BMC</h2>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -05009 <div class="event-log__timezone inline float-right">
10 <button class="dropdown__button" ng-click="timezone = timezone == true ? false : true;" toggle-flag="timezone"
11 >User timezone: <span ng-show="tmz== 'EDT'">EDT (UTC-4)</span><span ng-show="tmz=='UTC'">UTC - 0</span>
12 </button>
13 <ul class="dropdown__list inline" ng-show="timezone">
14 <li>
15 <button ng-click="tmz = 'EDT'; timezone=false;">User timezone: EDT (UTC-4)</button>
16 </li>
17 <li>
18 <button ng-click="tmz = 'UTC'; timezone=false;">UTC Timezone : UTC - 0</button>
19 </li>
20 </ul>
21 </div>
22 </div>
23 </section>
24 <!-- Filters -->
Iftekharul Islama547ff42017-08-09 11:20:15 -050025 <section class="row column">
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050026 <!-- search -->
27 <log-search-control></log-search-control>
28 <!-- filters -->
29 <log-filter></log-filter>
30 </section> <!-- end filter -->
Michael Davis83608e12017-07-20 15:58:50 -050031
Iftekharul Islama547ff42017-08-09 11:20:15 -050032 <section id="event-log__events" class="row column">
Michael Davisb76d5f02017-06-19 14:23:45 -050033 <div id="event__actions-bar" class="row header__actions-bar no-margin">
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050034 <div class="column small-1 large-1 event-log__col-check">
35 <label class="control-check">
36 <input type="checkbox" name="events__check-all" ng-model="all" ng-checked="(logs|filter:{selected: true}).length == logs.length"/>
Iftekharul Islama547ff42017-08-09 11:20:15 -050037 <span class="control__indicator"></span>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050038 </label>
39 </div>
Michael Davis473397c2017-07-27 15:09:53 -050040 <div class="column small-11 end col-logged-events">
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050041 <!-- top bar confirmation - ADD ACTIVE CLASS TO DISPLAY-->
42 <div class="inline__confirm event__confirm" ng-class="{active: confirm}">
43 <div class="inline__confirm-message">
Iftekharul Islama547ff42017-08-09 11:20:15 -050044 <p class="h3"><i></i>Are you sure you want to <strong class="ng-binding">delete {{selectedEvents.length}} logs</strong>?
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050045 </p>
46 </div>
47 <div class="inline__confirm-buttons">
48 <button class="btn-primary" ng-click="accept()">Yes</button>
49 <button class="btn-primary" ng-click="confirm = false">No</button>
50 </div>
51 </div>
Michael Davis706b75b2017-08-18 16:40:03 -050052 <p class="inline" ng-show="selectedEvents.length"><span class="event__select-count">{{selectedEvents.length}}</span> Events are selected</p>
53 <p class="inline" ng-hide="selectedEvents.length"><span class="event__select-count">{{filteredLogs.length}}</span> Events are logged</p>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050054 <!-- when logs are selected, this text changes to show how many logs are checked -->
55 <div class="event__actions">
56 <button class="inline btn-delete" ng-show="selectedEvents.length || all" ng-click="confirm= ! confirm">
57 <img class="event__icon" src="assets/images/icon-trashcan-white.svg" alt="">Delete
58 </button>
Michael Davis428375e2017-08-01 15:48:34 -050059 <button class="inline btn-resolve" ng-class="{'disabled': ((selectedEvents|unResolvedCount) == 0)}" ng-show="selectedEvents.length || all" ng-click="resolve()" ng-disabled="(selectedEvents|unResolvedCount) == 0">
Michael Davis7afaae72017-08-15 17:02:32 -050060 <img class="event__icon" src="assets/images/icon-check-white.svg" alt="">Mark as resolved
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050061 </button>
62 <a ng-href="data:text/json;charset=utf-8,{{export_data}}" class="inline btn-export" download="{{export_name}}" ng-show="selectedEvents.length || all">Export</a>
63 </div>
64 </div>
65 </div>
Iftekharul Islamc0161392017-06-14 15:46:15 -050066 <log-event
Iftekharul Islamd19b7182017-06-22 09:27:47 -050067 dir-paginate="event in (filteredLogs = (logs|filter:filterBySeverity|filter:filterByStatus|filter:filterByDate|filter:filterBySearchTerms | orderBy:'+Id'))| itemsPerPage: itemsPerPage"
Iftekharul Islamc0161392017-06-14 15:46:15 -050068 event="event"
Iftekharul Islam96bbf312017-08-22 13:44:38 -050069 tmz="tmz"
70 multi-selected="selectedEvents.length > 1"
71 >
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050072 </log-event>
Michael Davis706b75b2017-08-18 16:40:03 -050073 <dir-pagination-controls template-url="common/directives/dirPagination.tpl.html"></dir-pagination-controls>
Iftekharul Islam8b4828a2017-04-19 14:37:55 -050074 </section>
Iftekharul Islamdb28a382017-11-02 13:16:17 -050075</div> <!-- end event log -->