2016-06-07 10:49:38 +02:00
|
|
|
<div class="modal fade" id="createDestinationModal" tabindex="-1" role="dialog">
|
|
|
|
<div class="modal-dialog">
|
2016-06-14 12:47:32 +02:00
|
|
|
<form name="form" class="form-horizontal css-form" novalidate>
|
2016-06-07 10:49:38 +02:00
|
|
|
<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>
|
2016-06-14 12:47:32 +02:00
|
|
|
<h4 class="modal-title"><span class="glyphicon glyphicon-plus"></span> //vm.modalTitle//</h4>
|
2016-06-07 10:49:38 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="create-destination">
|
|
|
|
<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-14 12:47:32 +02:00
|
|
|
<input type="text" class="form-control form-control-custom" id="name" ng-model="destination.name" name="uName" required>
|
|
|
|
<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-14 12:47:32 +02:00
|
|
|
<input type="text" class="form-control form-control-custom" id="endpoint" ng-model="destination.endpoint" name="uEndpoint" required >
|
|
|
|
<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-14 12:47:32 +02:00
|
|
|
<input type="text" class="form-control" id="username" ng-model="destination.username" name="uUsername" required>
|
|
|
|
<div ng-messages="form.$submitted && form.uUsername.$error">
|
2016-06-20 13:15:45 +02:00
|
|
|
<span ng-message="required">// 'username_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="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-14 12:47:32 +02:00
|
|
|
<input type="password" class="form-control" id="password" ng-model="destination.password" name="uPassword" required>
|
|
|
|
<div ng-messages="form.$submitted && form.uPassword.$error">
|
2016-06-20 13:15:45 +02:00
|
|
|
<span ng-message="required">// 'password_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">
|
|
|
|
<div class="col-md-3"></div>
|
|
|
|
<div class="col-md-9">
|
2016-06-20 13:15:45 +02:00
|
|
|
<button type="submit" class="btn btn-default" ng-click="form.$valid && vm.pingDestination()">// 'test_connection' | tr //</button>
|
2016-06-07 10:49:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2016-06-14 12:47:32 +02:00
|
|
|
<button type="submit" class="btn btn-primary" id="btnOk" ng-click="form.$valid && vm.save(destination)">// 'ok' | tr //</button>
|
2016-06-07 10:49:38 +02:00
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">// 'close' | tr //</button>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.modal-content -->
|
2016-06-14 12:47:32 +02:00
|
|
|
</form>
|
2016-06-07 10:49:38 +02:00
|
|
|
</div><!-- /.modal-dialog -->
|
|
|
|
</div><!-- /.modal -->
|