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-28 17:42:05 +02:00
|
|
|
<div class="modal fade" data-backdrop="static" id="createDestinationModal" tabindex="-1" role="dialog">
|
2016-06-07 10:49:38 +02:00
|
|
|
<div class="modal-dialog">
|
2016-06-24 12:44:54 +02:00
|
|
|
<form name="form" class="form-horizontal css-form" novalidate>
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
<h4 class="modal-title"><span class="glyphicon glyphicon-plus"></span> //vm.modalTitle//</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="create-destination">
|
2016-07-02 18:22:45 +02:00
|
|
|
<div class="col-md-12" ng-show="vm.toggleErrorMessage">
|
|
|
|
<div class="pull-right clearfix" style="padding: 5px 10px;"><a href="javascript:void(0);" ng-click="vm.closeError()"><span class="glyphicon glyphicon-remove"></span></a></div>
|
|
|
|
<div class="bg-danger dialog-message">
|
|
|
|
<ul class="list-unstyled" style="color: red; margin: 0;" ng-repeat="msg in vm.errorMessages">
|
|
|
|
<li>// msg //</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-07 10:49:38 +02:00
|
|
|
<div class="form-group col-md-12 form-group-custom">
|
2016-06-20 13:15:45 +02:00
|
|
|
<label for="name" class="col-md-3 control-label">// 'name' | tr //:</label>
|
2016-06-07 10:49:38 +02:00
|
|
|
<div class="col-md-9">
|
2016-06-22 13:03:12 +02:00
|
|
|
<input type="text" class="form-control form-control-custom" id="name" ng-model="destination.name" name="uName" required ng-disabled="!vm.editable">
|
2016-06-14 12:47:32 +02:00
|
|
|
<div ng-messages="form.$submitted && form.uName.$error">
|
2016-06-20 13:15:45 +02:00
|
|
|
<span ng-message="required">// 'name_is_required' | tr //</span>
|
2016-06-07 10:49:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-12 form-group-custom">
|
2016-06-20 13:15:45 +02:00
|
|
|
<label for="description" class="col-md-3 control-label">// 'endpoint' | tr //:</label>
|
2016-06-07 10:49:38 +02:00
|
|
|
<div class="col-md-9">
|
2016-06-22 13:03:12 +02:00
|
|
|
<input type="text" class="form-control form-control-custom" id="endpoint" ng-model="destination.endpoint" name="uEndpoint" required ng-disabled="!vm.editable">
|
2016-06-14 12:47:32 +02:00
|
|
|
<div ng-messages="form.$submitted && form.uEndpoint.$error">
|
2016-06-20 13:15:45 +02:00
|
|
|
<span ng-message="required">// 'endpoint_is_required' | tr //</span>
|
2016-06-07 10:49:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-12 form-group-custom">
|
2016-06-20 13:15:45 +02:00
|
|
|
<label for="username" class="col-md-3 control-label">// 'username' | tr //:</label>
|
2016-06-07 10:49:38 +02:00
|
|
|
<div class="col-md-9">
|
2016-06-23 09:19:12 +02:00
|
|
|
<input type="text" class="form-control" id="username" ng-model="destination.username" name="uUsername" ng-disabled="!vm.editable">
|
2016-06-07 10:49:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-12 form-group-custom">
|
2016-06-20 13:15:45 +02:00
|
|
|
<label for="password" class="col-md-3 control-label">// 'password' | tr //:</label>
|
2016-06-07 10:49:38 +02:00
|
|
|
<div class="col-md-9">
|
2016-06-23 09:19:12 +02:00
|
|
|
<input type="password" class="form-control" id="password" ng-model="destination.password" name="uPassword" ng-disabled="!vm.editable">
|
2016-06-07 10:49:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-12 form-group-custom">
|
|
|
|
<div class="col-md-3"></div>
|
|
|
|
<div class="col-md-9">
|
2016-07-13 07:21:43 +02:00
|
|
|
<button type="button" class="btn btn-default" ng-disabled="vm.notAvailable" ng-click="vm.pingDestination()" loading-progress hide-target="false" toggle-in-progress="vm.pingTIP">// 'test_connection' | tr //</button>
|
2016-06-28 17:42:05 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-md-12 form-group-custom">
|
|
|
|
<div class="col-md-3"></div>
|
|
|
|
<div class="col-md-9">
|
|
|
|
<span>// vm.pingMessage //</span>
|
2016-06-07 10:49:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-24 12:44:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-07-13 07:17:31 +02:00
|
|
|
<button ng-show="vm.editable" type="submit" class="btn btn-primary" id="btnOk" ng-click="form.$valid && vm.save(destination)">// 'ok' | tr //</button>
|
2016-06-24 12:44:54 +02:00
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">// 'close' | tr //</button>
|
2016-06-07 10:49:38 +02:00
|
|
|
</div>
|
2016-06-24 12:44:54 +02:00
|
|
|
</div><!-- /.modal-content -->
|
|
|
|
</form>
|
2016-06-07 10:49:38 +02:00
|
|
|
</div><!-- /.modal-dialog -->
|
2016-06-23 09:19:12 +02:00
|
|
|
</div><!-- /.modal -->
|