2016-06-07 10:49:38 +02:00
|
|
|
<div class="tab-pane">
|
|
|
|
<div class="col-xs-12 col-md-12 each-tab-pane">
|
|
|
|
<div class="form-inline">
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" class="form-control" placeholder="" ng-model="vm.replicationName" size="30">
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button class="btn btn-primary" type="button" ng-click="vm.search()"><span class="glyphicon glyphicon-search"></span></button>
|
|
|
|
</span>
|
|
|
|
</div>
|
2016-06-15 11:46:23 +02:00
|
|
|
<create-policy reload="vm.retrieve()" action="vm.action" modal-title="//vm.modalTitle//" policy-id="//vm.policyId//"></create-policy>
|
2016-06-07 10:49:38 +02:00
|
|
|
</div>
|
|
|
|
<div class="pane">
|
|
|
|
<div class="sub-pane">
|
|
|
|
<table class="table table-pane">
|
|
|
|
<thead>
|
2016-06-15 11:46:23 +02:00
|
|
|
<th width="14%">Name</th>
|
|
|
|
<th width="18%">Description</th>
|
|
|
|
<th width="14%">Project</th>
|
|
|
|
<th width="12%">Destination</th>
|
|
|
|
<th width="18%">Start Time</th>
|
2016-06-07 10:49:38 +02:00
|
|
|
<th width="12%">Activation</th>
|
|
|
|
<th width="12%">Actions</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-if="vm.replications.length == 0">
|
|
|
|
<td colspan="7" height="100%" class="empty-hint" ><h3 class="text-muted">No replications.</h3></td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-if="vm.replications.length > 0" ng-repeat="r in vm.replications">
|
|
|
|
<td>//r.name//</td>
|
|
|
|
<td>//r.description//</td>
|
2016-06-15 11:46:23 +02:00
|
|
|
<td>//r.project_name//</td>
|
|
|
|
<td>//r.target_name//</td>
|
|
|
|
<td>//r.start_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
|
|
|
<td>//r.enabled == 1 ? 'Enabled' : 'Disabled'//</td>
|
|
|
|
<td>
|
|
|
|
<div class="display-inline-block" ng-switch on="//r.enabled//">
|
|
|
|
<a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 0)"><span ng-switch-when="1" class="glyphicon glyphicon-play color-success"></span></a>
|
|
|
|
<a href="javascript:void(0);" ng-click="vm.togglePolicy(r.id, 1)"><span ng-switch-when="0" class="glyphicon glyphicon-stop color-danger"></span></a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<a href="javascript:void(0);" data-toggle="modal" data-target="#createPolicyModal" ng-click="vm.editReplication(r.id)"><span class="glyphicon glyphicon-pencil"></span></a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0);"><span class="glyphicon glyphicon-trash"></span></a>
|
|
|
|
</td>
|
2016-06-07 10:49:38 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-4 col-md-12 well well-sm well-custom well-split"><div class="col-md-offset-10">//vm.replications ? vm.replications.length : 0// // 'items' | tr //</div></div>
|
|
|
|
</div>
|
|
|
|
</div>
|