2016-09-02 10:10:10 +00:00
|
|
|
<md-content ng-if="!_agent" 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 style="min-height: 700px;" ng-if="!load">
|
|
|
|
<div flex layout="column" layout-align="space-between stretch">
|
|
|
|
<div layout="row" layout-align="space-between stretch">
|
|
|
|
<md-input-container layout="row" class="sideNavBox" flex="40">
|
2016-09-02 14:03:11 +00:00
|
|
|
|
|
|
|
<input placeholder="Search" type="text" id="searchBox" ng-model="$parent._agentSearch" ng-change="agentSearchFilter($parent._agentSearch)" flex>
|
2016-09-02 10:10:10 +00:00
|
|
|
</md-input-container>
|
|
|
|
<div flex="40"></div>
|
2016-09-02 14:03:11 +00:00
|
|
|
<md-input-container flex="20" class="md-whiteframe-z1" style="margin-right: 10px; ">
|
2016-09-02 10:10:10 +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="never+connected">Never connected</md-option>
|
|
|
|
</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 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>
|
|
|
|
<span flex="20">{{agent.status}}</span>
|
|
|
|
<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-08-23 14:27:42 +00:00
|
|
|
</md-content>
|