blob: 713b87938dfc5ec0becc1e6ede6b2c4da56d95f9 [file] [log] [blame]
<div id="event-log">
<div class="row column">
<h1>Event Log</h1>
</div>
<section class="row column">
<div class="page-header">
<h2 class="inline h4">All events generated by the system</h2>
<div class="event-log__timezone inline float-right">
<button class="dropdown__button" ng-click="timezone = timezone == true ? false : true;" toggle-flag="timezone"
>User timezone: <span ng-show="tmz== 'EDT'">EDT (UTC-4)</span><span ng-show="tmz=='UTC'">UTC - 0</span>
</button>
<ul class="dropdown__list inline" ng-show="timezone">
<li>
<button ng-click="tmz = 'EDT'; timezone=false;">User timezone: EDT (UTC-4)</button>
</li>
<li>
<button ng-click="tmz = 'UTC'; timezone=false;">UTC Timezone : UTC - 0</button>
</li>
</ul>
</div>
</div>
</section>
<!-- Filters -->
<section class="row column">
<!-- search -->
<log-search-control></log-search-control>
<!-- filters -->
<log-filter></log-filter>
</section> <!-- end filter -->
<section id="event-log__events" class="row column">
<div id="event__actions-bar" class="row header__actions-bar">
<div class="column small-1 large-1 event-log__col-check">
<label class="control-check">
<input type="checkbox" name="events__check-all" ng-model="all" ng-checked="(logs|filter:{selected: true}).length == logs.length"/>
<div class="control__indicator"></div>
</label>
</div>
<div class="column small-11 large-11 end col-logged-events">
<!-- top bar confirmation - ADD ACTIVE CLASS TO DISPLAY-->
<div class="inline__confirm event__confirm" ng-class="{active: confirm}">
<div class="inline__confirm-message">
<p class="h3"><i></i>Are you sure you want to <strong class="ng-binding">delete {{selectedEvents.length}} logs</strong>?
</p>
</div>
<div class="inline__confirm-buttons">
<button class="btn-primary" ng-click="accept()">Yes</button>
<button class="btn-primary" ng-click="confirm = false">No</button>
</div>
</div>
<p class="inline"><span class="event__select-count">{{filteredLogs.length}}</span> Events are logged</p>
<!-- when logs are selected, this text changes to show how many logs are checked -->
<div class="event__actions">
<button class="inline btn-delete" ng-show="selectedEvents.length || all" ng-click="confirm= ! confirm">
<img class="event__icon" src="assets/images/icon-trashcan-white.svg" alt="">Delete
</button>
<button class="inline btn-resolve" ng-show="selectedEvents.length || all">
<img class="event__icon" src="assets/images/icon-checklist-white.svg" alt="">Mark as resolved
</button>
<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>
</div>
</div>
</div>
<log-event
dir-paginate="event in (filteredLogs = (logs|filter:filterBySeverity|filter:filterByStatus|filter:filterByDate|filter:filterBySearchTerms))| itemsPerPage: itemsPerPage"
event="event"
tmz="tmz">
</log-event>
</section>
<dir-pagination-controls template-url="common/directives/dirPagination.tpl.html"></dir-pagination-controls>
</div> <!-- end event log -->