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.destinationName" 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-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-20 11:05:48 +02:00
|
|
|
<div class="pane">
|
2016-06-22 05:26:28 +02:00
|
|
|
<modal-dialog modal-title="// 'confirm_to_delete_destination_title' | tr //" modal-message="// 'confirm_to_delete_destination' | tr //" action="vm.deleteDestination()"></modal-dialog>
|
2016-06-07 10:49:38 +02:00
|
|
|
<div class="sub-pane">
|
|
|
|
<table class="table table-pane">
|
|
|
|
<thead>
|
2016-06-20 13:15:45 +02:00
|
|
|
<th width="20%">// 'name' | tr //</th>
|
|
|
|
<th width="40%">// 'endpoint' | tr //</th>
|
|
|
|
<th width="20%">// 'creation_time' | tr //</th>
|
|
|
|
<th width="20%">// 'actions' | tr //</th>
|
2016-06-07 10:49:38 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-if="vm.destinations.length == 0">
|
2016-06-20 13:15:45 +02:00
|
|
|
<td colspan="7" height="100%" class="empty-hint" ><h3 class="text-muted">// 'no_destinations' | tr //</h3></td>
|
2016-06-07 10:49:38 +02:00
|
|
|
</tr>
|
|
|
|
<tr ng-if="vm.destinations.length > 0" ng-repeat="r in vm.destinations">
|
|
|
|
<td>//r.name//</td>
|
2016-06-11 15:16:01 +02:00
|
|
|
<td>//r.endpoint//</td>
|
2016-06-15 11:46:23 +02:00
|
|
|
<td>//r.creation_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
2016-06-14 12:47:32 +02:00
|
|
|
<td>
|
|
|
|
<a href="javascript:void(0);" data-toggle="modal" data-target="#createDestinationModal" ng-click="vm.editDestination(r.id)"><span class="glyphicon glyphicon-pencil"></span></a>
|
|
|
|
|
2016-06-20 11:05:48 +02:00
|
|
|
<a href="javascript:void(0);" data-toggle="modal" data-target="#myModal" ng-click="vm.confirmToDelete(r.id)"><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>
|
|
|
|
</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.destinations ? vm.destinations.length : 0// // 'items' | tr //</div></div>
|
|
|
|
</div>
|
|
|
|
</div>
|