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-26 06:56:58 +02:00
|
|
|
<div class="tab-pane" element-height>
|
2016-06-07 10:49:38 +02:00
|
|
|
<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="txtSearchInput" class="form-control" placeholder="" ng-model="vm.destinationName" 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>
|
2016-06-20 13:15:45 +02:00
|
|
|
<button ng-if="!vm.isOpen" class="btn btn-success" type="button" ng-click="vm.addDestination()" data-toggle="modal" data-target="#createDestinationModal"><span class="glyphicon glyphicon-plus"></span>// 'add_new_destination' | tr //</button>
|
2016-06-14 12:47:32 +02:00
|
|
|
<create-destination action="//vm.action//" target-id="//vm.targetId//" reload="vm.retrieve()"></create-destination>
|
2016-06-07 10:49:38 +02:00
|
|
|
</div>
|
2016-06-28 14:27:58 +02:00
|
|
|
<div class="pane">
|
|
|
|
<div class="sub-pane">
|
2016-06-28 13:16:38 +02:00
|
|
|
<div class="table-head-container">
|
|
|
|
<table class="table table-pane table-header">
|
|
|
|
<thead>
|
2016-06-20 13:15:45 +02:00
|
|
|
<th width="20%">// 'name' | tr //</th>
|
2016-06-28 15:00:35 +02:00
|
|
|
<th width="30%">// 'endpoint' | tr //</th>
|
|
|
|
<th width="35%">// 'creation_time' | tr //</th>
|
|
|
|
<th width="15%">// 'actions' | tr //</th>
|
2016-06-28 13:16:38 +02:00
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</div>
|
2016-06-29 06:04:33 +02:00
|
|
|
<div class="table-body-container">
|
2016-06-28 13:16:38 +02:00
|
|
|
<table class="table table-pane">
|
|
|
|
<tbody>
|
2016-06-07 10:49:38 +02:00
|
|
|
<tr ng-if="vm.destinations.length == 0">
|
2016-07-06 14:22:45 +02:00
|
|
|
<td colspan="7" height="100%" class="empty-hint" ><h4 class="text-muted">// 'no_destinations' | tr //</h4></td>
|
2016-06-07 10:49:38 +02:00
|
|
|
</tr>
|
|
|
|
<tr ng-if="vm.destinations.length > 0" ng-repeat="r in vm.destinations">
|
2016-06-30 09:57:00 +02:00
|
|
|
<td width="20%">//r.name//</td>
|
|
|
|
<td width="30%">//r.endpoint//</td>
|
|
|
|
<td width="35%">//r.creation_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
|
|
|
<td width="15%">
|
2016-07-06 06:56:44 +02:00
|
|
|
<a href="javascript:void(0);" data-toggle="modal" data-target="#createDestinationModal" ng-click="vm.editDestination(r.id)" title="// 'edit' | tr //" ><span class="glyphicon glyphicon-pencil"></span></a>
|
2016-06-14 12:47:32 +02:00
|
|
|
|
2016-07-06 14:22:45 +02:00
|
|
|
<a href="javascript:void(0);" ng-click="vm.confirmToDelete(r.id, r.name)" title="// 'delete' | tr //"><span class="glyphicon glyphicon-trash"></span></a>
|
2016-06-14 12:47:32 +02:00
|
|
|
</td>
|
2016-06-07 10:49:38 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
2016-06-28 13:16:38 +02:00
|
|
|
</table>
|
2016-06-07 10:49:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-29 06:04:33 +02:00
|
|
|
<div class="col-xs-4 col-md-12 well well-sm well-custom">
|
|
|
|
<div class="col-md-offset-10">//vm.destinations ? vm.destinations.length : 0// // 'items' | tr //</div>
|
|
|
|
</div>
|
2016-06-28 13:16:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|