Michael Davis | 428375e | 2017-08-01 15:48:34 -0500 | [diff] [blame] | 1 | <loader loading="loading"></loader> |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 2 | <div id="event-log"> |
| 3 | <div class="row column"> |
Michael Davis | e126be7 | 2017-05-08 11:20:12 -0500 | [diff] [blame] | 4 | <h1>Event log</h1> |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 5 | </div> |
Iftekharul Islam | a547ff4 | 2017-08-09 11:20:15 -0500 | [diff] [blame^] | 6 | <section class="row column"> |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 7 | <div class="page-header"> |
Michael Davis | c1530fa | 2017-07-20 14:11:45 -0500 | [diff] [blame] | 8 | <h2 class="inline h4">All events from the BMC</h2> |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 9 | <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 Islam | a547ff4 | 2017-08-09 11:20:15 -0500 | [diff] [blame^] | 25 | <section class="row column"> |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 26 | <!-- search --> |
| 27 | <log-search-control></log-search-control> |
| 28 | <!-- filters --> |
| 29 | <log-filter></log-filter> |
| 30 | </section> <!-- end filter --> |
Michael Davis | 83608e1 | 2017-07-20 15:58:50 -0500 | [diff] [blame] | 31 | |
Iftekharul Islam | a547ff4 | 2017-08-09 11:20:15 -0500 | [diff] [blame^] | 32 | <section id="event-log__events" class="row column"> |
Michael Davis | b76d5f0 | 2017-06-19 14:23:45 -0500 | [diff] [blame] | 33 | <div id="event__actions-bar" class="row header__actions-bar no-margin"> |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 34 | <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 Islam | a547ff4 | 2017-08-09 11:20:15 -0500 | [diff] [blame^] | 37 | <span class="control__indicator"></span> |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 38 | </label> |
| 39 | </div> |
Michael Davis | 473397c | 2017-07-27 15:09:53 -0500 | [diff] [blame] | 40 | <div class="column small-11 end col-logged-events"> |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 41 | <!-- 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 Islam | a547ff4 | 2017-08-09 11:20:15 -0500 | [diff] [blame^] | 44 | <p class="h3"><i></i>Are you sure you want to <strong class="ng-binding">delete {{selectedEvents.length}} logs</strong>? |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 45 | </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> |
Iftekharul Islam | f2d7464 | 2017-07-10 16:42:14 -0500 | [diff] [blame] | 52 | <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 Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 54 | <!-- 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 Davis | 428375e | 2017-08-01 15:48:34 -0500 | [diff] [blame] | 59 | <button class="inline btn-resolve" ng-class="{'disabled': ((selectedEvents|unResolvedCount) == 0)}" ng-show="selectedEvents.length || all" ng-click="resolve()" ng-disabled="(selectedEvents|unResolvedCount) == 0"> |
Iftekharul Islam | a547ff4 | 2017-08-09 11:20:15 -0500 | [diff] [blame^] | 60 | <img class="event__icon" src="assets/images/icon-checklist-white.svg" alt="">Mark as resolved |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 61 | </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 Islam | c016139 | 2017-06-14 15:46:15 -0500 | [diff] [blame] | 66 | <log-event |
Iftekharul Islam | d19b718 | 2017-06-22 09:27:47 -0500 | [diff] [blame] | 67 | dir-paginate="event in (filteredLogs = (logs|filter:filterBySeverity|filter:filterByStatus|filter:filterByDate|filter:filterBySearchTerms | orderBy:'+Id'))| itemsPerPage: itemsPerPage" |
Iftekharul Islam | c016139 | 2017-06-14 15:46:15 -0500 | [diff] [blame] | 68 | event="event" |
Iftekharul Islam | 8b4828a | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 69 | tmz="tmz"> |
| 70 | </log-event> |
| 71 | </section> |
| 72 | <dir-pagination-controls template-url="common/directives/dirPagination.tpl.html"></dir-pagination-controls> |
Iftekharul Islam | a547ff4 | 2017-08-09 11:20:15 -0500 | [diff] [blame^] | 73 | </div> <!-- end event log --> |