wazuh-kibana-app/public/templates/agents-preview.html

53 lines
3.5 KiB
HTML
Raw Normal View History

2016-09-17 19:33:38 +00:00
<md-content ng-if="!_agent || submenuNavItem == 'preview'" class="md-padding">
<div flex ng-controller="agentsPreviewController" layout="column">
<md-progress-linear class="md-accent" md-mode="indeterminate" ng-show="load"></md-progress-linear>
<md-virtual-repeat-container auto-size-container ng-style="autoSizeStyle" ng-if="!load">
2016-09-09 19:37:11 +00:00
<div flex layout="column" layout-align="space-between stretch">
<div layout="row" layout-align="space-between stretch">
2016-09-20 08:55:43 +00:00
2016-09-09 19:37:11 +00:00
<md-input-container layout="row" class="sideNavBox" flex="40">
2016-09-02 17:15:00 +00:00
2016-09-20 08:55:43 +00:00
<input placeholder="Filter" type="text" id="searchBox" ng-model="$parent._agentSearch" ng-change="agentSearchFilter($parent._agentSearch)"
flex>
2016-09-09 19:37:11 +00:00
</md-input-container>
<div flex="40"></div>
2016-09-22 12:22:02 +00:00
<md-input-container flex="20" class="md-whiteframe-z1" style="margin-right: 10px; background-color: rgb(207,216,220)">
2016-09-09 19:37:11 +00:00
<md-select id="eventBox" ng-model="$parent._status" ng-change="agentStatusFilter($parent._status)" aria-label="Filter by status">
<md-option value="all">All</md-option>
<md-option value="active">Active</md-option>
<md-option value="disconnected">Disconnected</md-option>
<md-option value="neverConnected">Never connected</md-option>
2016-09-09 19:37:11 +00:00
</md-select>
</md-input-container>
</div>
<div>
<md-toolbar layout="row">
<div class="md-toolbar-tools">
<span flex="10" ng-click="setSort('id')">ID
<i class="fa" ng-class="_sort === 'id' ? (_sortOrder ? 'fa-sort-asc' : 'fa-sort-desc') : 'fa-sort'" aria-hidden="true"></i></span>
<span flex="30" ng-click="setSort('name')">Name
<i class="fa" ng-class="_sort === 'name' ? (_sortOrder ? 'fa-sort-asc' : 'fa-sort-desc') : 'fa-sort'" aria-hidden="true"></i></span>
<span flex="30" ng-click="setSort('ip')">IP
<i class="fa" ng-class="_sort === 'ip' ? (_sortOrder ? 'fa-sort-asc' : 'fa-sort-desc') : 'fa-sort'" aria-hidden="true"></i></span>
<span flex="30" ng-click="setSort('status')">Status
<i class="fa" ng-class="_sort === 'status' ? (_sortOrder ? 'fa-sort-asc' : 'fa-sort-desc') : 'fa-sort'" aria-hidden="true"></i></span>
</div>
</md-toolbar>
</div>
</div>
<div md-virtual-repeat="agent in agentsObj" md-on-demand flex layout-align="start stretch">
<md-list class="agents-preview-table" ng-click="applyAgent(agent)">
<md-list-item>
<span flex="10">{{agent.id}}</span>
<span flex="30">{{agent.name}}</span>
<span flex="30">{{agent.ip}}</span>
2016-09-28 12:30:52 +00:00
<span flex="20">{{agent.status}}</span>
2016-09-09 19:37:11 +00:00
<span flex="10"> <span ng-class="getAgentStatusClass(agent.status)" class="round status"></span></span>
</md-list-item>
</md-list>
<md-divider></md-divider>
</div>
</md-virtual-repeat-container>
</div>
2016-09-28 12:30:52 +00:00
</md-content>