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">
|
2016-06-13 12:12:46 +02:00
|
|
|
<input type="text" class="form-control" placeholder="" ng-model="vm.replicationPolicyName" size="30">
|
2016-06-07 10:49:38 +02:00
|
|
|
<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>
|
|
|
|
<button ng-if="!vm.isOpen" class="btn btn-success" type="button" ng-click="vm.addReplication()" data-toggle="modal" data-target="#createPolicyModal"><span class="glyphicon glyphicon-plus"></span>New Replication</button>
|
2016-06-13 12:12:46 +02:00
|
|
|
<create-policy reload="vm.retrievePolicy()" 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-split" id="upon-pane">
|
|
|
|
<div class="sub-pane-split">
|
|
|
|
<table class="table table-pane">
|
|
|
|
<thead>
|
|
|
|
<th width="10%">Name</th>
|
|
|
|
<th width="18%">Description</th>
|
2016-06-13 12:12:46 +02:00
|
|
|
<th width="18%">Destination</th>
|
2016-06-07 10:49:38 +02:00
|
|
|
<th width="18%">Start Time</th>
|
|
|
|
<th width="14%">Activation</th>
|
2016-06-13 12:12:46 +02:00
|
|
|
<th width="15%">Actions</th>
|
2016-06-07 10:49:38 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-if="vm.replicationPolicies.length == 0">
|
|
|
|
<td colspan="7" height="100%" class="empty-hint" ><h3 class="text-muted">No replication policies, add new replication policy.</h3></td>
|
|
|
|
</tr>
|
2016-06-11 15:16:01 +02:00
|
|
|
<tr policy_id="//r.id//" ng-if="vm.replicationPolicies.length > 0" ng-repeat="r in vm.replicationPolicies" value="//vm.last = $last//">
|
2016-06-07 10:49:38 +02:00
|
|
|
<td>//r.name//</td>
|
|
|
|
<td>//r.description//</td>
|
2016-06-15 11:46:23 +02:00
|
|
|
<td>//r.target_name//</td>
|
2016-06-13 12:12:46 +02:00
|
|
|
<td>//r.start_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
|
|
|
<td ng-switch on="//r.enabled//">
|
|
|
|
<span ng-switch-when="1">Enabled</span>
|
|
|
|
<span ng-switch-when="0">Disabled</span>
|
|
|
|
</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.projects ? vm.projects.length : 0// // 'items' | tr //</div></div>
|
|
|
|
<p class="split-handle"><span class="glyphicon glyphicon-align-justify"></span></p>
|
|
|
|
<h4 class="h4-custom-down">Replication Jobs</h4>
|
|
|
|
<hr class="hr-line"/>
|
|
|
|
<div class="form-inline">
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" class="form-control" placeholder="" ng-model="vm.replicationJobnName" 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>
|
|
|
|
</div>
|
|
|
|
<div class="pane-split" id="down-pane">
|
|
|
|
<div class="sub-pane-split">
|
|
|
|
<table class="table table-pane" width="98%">
|
|
|
|
<thead>
|
|
|
|
<th width="20%">Name</th>
|
|
|
|
<th width="25%">Operation</th>
|
|
|
|
<th width="40%">Start Time</th>
|
|
|
|
<th width="15%">Status</th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-if="vm.replicationJobs.length == 0">
|
|
|
|
<td colspan="4" height="100%" class="empty-hint" ><h3 class="text-muted">No replication jobs.</h3></td>
|
|
|
|
</tr>
|
|
|
|
<tr ng-if="vm.replicationJobs.length > 0" ng-repeat="r in vm.replicationJobs">
|
2016-06-15 11:46:23 +02:00
|
|
|
<td>//r.tags != null ? r.tags.join(',') : 'N/A'//</td>
|
2016-06-07 10:49:38 +02:00
|
|
|
<td>//r.operation//</td>
|
2016-06-15 11:46:23 +02:00
|
|
|
<td>//r.update_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
2016-06-07 10:49:38 +02:00
|
|
|
<td>//r.status//</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|