2016-07-07 18:03:32 +02:00
<!--
Copyright (c) 2016 VMware, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
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-07-11 10:11:54 +02:00
< input type = "text" id = "txtSearchPolicyInput" class = "form-control" placeholder = "" ng-model = "vm.replicationPolicyName" size = "30" >
2016-06-07 10:49:38 +02:00
< span class = "input-group-btn" >
2016-06-16 11:36:06 +02:00
< button class = "btn btn-primary" type = "button" ng-click = "vm.searchReplicationPolicy()" > < span class = "glyphicon glyphicon-search" > < / span > < / button >
2016-06-07 10:49:38 +02:00
< / span >
< / div >
2016-06-22 05:26:28 +02:00
< 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 > // 'add_new_policy' | tr //< / 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" >
2016-06-28 05:15:34 +02:00
< div class = "table-head-container" >
2016-06-28 01:58:38 +02:00
< table class = "table table-pane table-header" >
2016-06-07 10:49:38 +02:00
< thead >
2016-06-20 13:15:45 +02:00
< th width = "10%" > // 'name' | tr //< / th >
< th width = "18%" > // 'description' | tr //< / th >
< th width = "18%" > // 'destination' | tr //< / th >
2016-06-28 17:42:05 +02:00
< th width = "18%" > // 'last_start_time' | tr //< / th >
2016-06-20 13:15:45 +02:00
< th width = "14%" > // 'activation' | tr// < / th >
2016-07-07 10:08:16 +02:00
< th width = "10%" > // 'actions' | tr //< / th >
< th width = "5%" > < / th >
2016-06-07 10:49:38 +02:00
< / thead >
2016-06-28 01:58:38 +02:00
< / table >
2016-06-28 05:15:34 +02:00
< / div >
2016-06-28 07:12:25 +02:00
< div class = "table-body-container" style = "height: 250px;" >
2016-06-28 01:58:38 +02:00
< table class = "table table-pane" >
< tbody >
< tr ng-if = "vm.replicationPolicies.length == 0" >
2016-07-06 14:22:45 +02:00
< td colspan = "7" height = "100%" class = "empty-hint" > < h4 class = "text-muted" > // 'no_replication_policies_add_new' | tr //< / h4 > < / td >
2016-06-28 01:58:38 +02:00
< / tr >
< tr policy_id = "//r.id//" ng-if = "vm.replicationPolicies.length > 0" ng-repeat = "r in vm.replicationPolicies" value = "//vm.last = $last//" >
< td width = "10%" > //r.name//< / td >
2016-06-30 09:57:00 +02:00
< td width = "18%" > //r.description//< / td >
< td width = "18%" > //r.target_name//< / td >
< td width = "18%" > //r.start_time | dateL : 'YYYY-MM-DD HH:mm:ss'//< / td >
< td width = "14%" ng-switch on = "//r.enabled//" >
2016-06-28 01:58:38 +02:00
< span ng-switch-when = "1" > // 'enabled' | tr //< / span >
< span ng-switch-when = "0" > // 'disabled' | tr //< / span >
< / td >
2016-07-07 10:08:16 +02:00
< td width = "10%" >
2016-06-28 01:58:38 +02:00
< div class = "display-inline-block" ng-switch on = "//r.enabled//" >
2016-07-06 14:22:45 +02:00
< a href = "javascript:void(0);" ng-click = "vm.confirmToTogglePolicy(r.id, 0, r.name)" title = "// 'disable' | tr //" > < span ng-switch-when = "1" class = "glyphicon glyphicon-stop color-danger" > < / span > < / a >
< a href = "javascript:void(0);" ng-click = "vm.confirmToTogglePolicy(r.id, 1, r.name)" title = "// 'enable' | tr //" > < span ng-switch-when = "0" class = "glyphicon glyphicon-play color-success" > < / span > < / a >
2016-06-28 01:58:38 +02:00
< / div >
2016-06-28 17:42:05 +02:00
< a href = "javascript:void(0);" data-toggle = "modal" data-target = "#createPolicyModal" ng-click = "vm.editReplication(r.id)" title = "// 'edit_policy' | tr //" > < span class = "glyphicon glyphicon-pencil" > < / span > < / a >
2016-06-28 01:58:38 +02:00
<!-- a href="javascript:void(0);"><span class="glyphicon glyphicon - trash"></span></a -->
< / td >
2016-07-07 10:08:16 +02:00
< td width = "5%" >
< a ng-if = "r.error_job_count > 0" title = "// 'found_error_in_replication_job' | tr: [r.error_job_count] //" > < span class = "glyphicon glyphicon-exclamation-sign color-danger" > < / span > < / a >
< / td >
2016-06-28 01:58:38 +02:00
< / tr >
< / tbody >
< / table >
< / div >
2016-06-07 10:49:38 +02:00
< / div >
< / div >
2016-06-17 09:22:58 +02:00
< div class = "col-xs-4 col-md-12 well well-sm well-custom well-split" > < div class = "col-md-offset-10" > //vm.replicationPolicies ? vm.replicationPolicies.length : 0// // 'items' | tr //< / div > < / div >
2016-06-28 07:12:25 +02:00
<!-- p class="split - handle"><span class="glyphicon glyphicon - align - justify"></span></p -->
2016-06-20 13:15:45 +02:00
< h4 class = "h4-custom-down" > // 'replication_jobs' | tr //< / h4 >
2016-06-07 10:49:38 +02:00
< hr class = "hr-line" / >
< div class = "form-inline" >
< div class = "input-group" >
2016-07-12 10:01:56 +02:00
< input type = "text" id = "txtSearchJobInput" class = "form-control" placeholder = "" ng-model = "vm.replicationJobName" size = "20" >
2016-06-07 10:49:38 +02:00
< span class = "input-group-btn" >
2016-07-03 06:10:42 +02:00
< button class = "btn btn-primary" type = "button" ng-click = "vm.searchReplicationJob()" loading-progress hide-target = "true" toggle-in-progress = "vm.searchJobTIP" > < span class = "glyphicon glyphicon-search" > < / span > < / button >
2016-06-07 10:49:38 +02:00
< / span >
< / div >
2016-06-29 11:14:00 +02:00
< div class = "input-group" >
< label for = "selStatus" class = "control-label label-custom" > // 'status' | tr //:< / label >
< div class = "input-group" >
< select class = "form-control" id = "selStatus" ng-options = "st.value for st in vm.jobStatus() track by st.key" ng-model = "vm.currentStatus" ng-change = "vm.searchReplicationJob()" > < / select >
< / div >
< / div >
< div class = "input-group" >
< label for = "fromDatePicker" class = "control-label label-custom" > // 'from' | tr //:< / label >
< div class = "input-group datetimepicker" >
< input id = "fromDatePicker" class = "form-control" type = "text" readonly = "readonly" ng-model = "vm.fromDate" ng-change = "vm.pickUp({key:'fromDate', value: vm.fromDate})" size = "10" >
< span class = "input-group-addon" >
< a href = "javascript:void(0);" > < span class = "glyphicon glyphicon-calendar" > < / span > < / a >
< / span >
< / div >
< / div >
< div class = "input-group" >
< label for = "toDatePicker" class = "control-label label-custom" > // 'to' | tr //:< / label >
< div class = "input-group datetimepicker" >
< input id = "toDatePicker" class = "form-control" type = "text" readonly = "readonly" ng-model = "vm.toDate" ng-change = "vm.pickUp({key:'toDate', value: vm.toDate})" size = "10" >
< span class = "input-group-addon" >
< a href = "javascript:void(0);" > < span class = "glyphicon glyphicon-calendar" > < / span > < / a >
< / span >
< / div >
< / div >
2016-06-28 01:58:38 +02:00
< div class = "input-group" >
2016-07-06 14:22:45 +02:00
< button type = "button" class = "btn btn-success" ng-click = "vm.refreshReplicationJob()" loading-progress hide-target = "true" toggle-in-progress = "vm.refreshJobTIP" title = "//'refresh' | tr//" > < span class = "glyphicon glyphicon-refresh" > < / span > < / button >
2016-06-25 08:19:15 +02:00
< / div >
2016-06-07 10:49:38 +02:00
< / div >
< div class = "pane-split" id = "down-pane" >
< div class = "sub-pane-split" >
2016-06-28 05:15:34 +02:00
< div class = "table-head-container" >
2016-06-28 01:58:38 +02:00
< table class = "table table-pane table-header" >
2016-06-07 10:49:38 +02:00
< thead >
2016-06-28 17:42:05 +02:00
< th width = "15%" > // 'name' | tr //< / th >
2016-06-30 10:31:53 +02:00
< th width = "15%" > // 'operation' | tr //< / th >
< th width = "24%" > // 'creation_time' | tr //< / th >
< th width = "24%" > // 'end_time' | tr //< / th >
2016-06-30 09:57:00 +02:00
< th width = "10%" > // 'status' | tr //< / th >
2016-06-30 10:31:53 +02:00
< th width = "12%" > // 'logs' | tr //< / th >
2016-06-07 10:49:38 +02:00
< / thead >
2016-06-28 01:58:38 +02:00
< / table >
2016-06-28 05:15:34 +02:00
< / div >
2016-06-28 07:12:25 +02:00
< div class = "table-body-container" style = "height: 370px;" >
2016-06-28 01:58:38 +02:00
< table class = "table table-pane" >
< tbody >
< tr ng-if = "vm.replicationJobs.length == 0" >
2016-07-06 14:22:45 +02:00
< td colspan = "4" height = "100%" class = "empty-hint" > < h4 class = "text-muted" > // 'no_replication_jobs' | tr //< / h4 > < / td >
2016-06-28 01:58:38 +02:00
< / tr >
< tr ng-if = "vm.replicationJobs.length > 0" ng-repeat = "r in vm.replicationJobs" >
2016-06-28 17:42:05 +02:00
< td width = "15%" > //r.repository//< / td >
2016-06-30 10:31:53 +02:00
< td width = "15%" > //r.operation//< / td >
< td width = "24%" > //r.creation_time | dateL : 'YYYY-MM-DD HH:mm:ss'//< / td >
< td width = "24%" > //r.update_time | dateL : 'YYYY-MM-DD HH:mm:ss'//< / td >
2016-06-30 09:57:00 +02:00
< td width = "10%" > //r.status//< / td >
2016-06-30 10:31:53 +02:00
< td width = "12%" >
2016-06-30 09:57:00 +02:00
< a style = "margin-left: 20px;" ng-show = "r.status != 'canceled' && r.status != 'pending'" href = "javascript:void(0);" ng-click = "vm.downloadLog(r.id)" title = "// 'download_log' | tr //" > < span class = "glyphicon glyphicon-file" > < / span > < / a >
2016-06-29 11:14:00 +02:00
< / td >
2016-06-28 01:58:38 +02:00
< / tr >
< / tbody >
< / table >
< / div >
2016-06-07 10:49:38 +02:00
< / div >
< / div >
< / div >
< / div >
2016-07-07 10:08:16 +02:00
< / div >