|
5 | 5 | "ng-controller" => "pglogicalReplicationFormController as $ctrl", |
6 | 6 | "ng-show" => "afterGet"} |
7 | 7 | = render :partial => "layouts/flash_msg" |
8 | | - %script{:id => "authkeyModalForm.html", :type => "text/ng-template"} |
9 | | - :cdata |
10 | | - <div class="modal fade" id="authkeyModalForm" tabindex="-1" role="dialog" aria-hidden="true"> |
11 | | - <div class="modal-header"> |
12 | | - <h4 class="modal-header">SSH Information For An Appliance In the Region</h4> |
13 | | - </div> |
14 | | - <form class="form-horizontal" name="authkeyModalForm" ng-submit="$ctrl.submitForm()" novalidate> |
15 | | - <div class="modal-body"> |
16 | | - <div class="form-group"> |
17 | | - <label class="col-sm-2 control-label">Host</label> |
18 | | - <div class="col-sm-10"> |
19 | | - <input type="text" name="ssh_host" class="form-control" ng-model="$ctrl.ssh_params.ssh_host"> |
20 | | - </div> |
21 | | - </div> |
22 | | - <div class="form-group"> |
23 | | - <label class="col-sm-2 control-label">User</label> |
24 | | - <div class="col-sm-10"> |
25 | | - <input type="text" name="ssh_user" class="form-control" ng-model="$ctrl.ssh_params.ssh_user" required> |
26 | | - <p ng-show="authkeyModalForm.ssh_user.$invalid && !authkeyModalForm.ssh_user.$pristine" class="help-block">SSH user is required.</p> |
27 | | - </div> |
28 | | - </div> |
29 | | - <div class="form-group"> |
30 | | - <label class="col-sm-2 control-label">Password</label> |
31 | | - <div class="col-sm-10"> |
32 | | - <input type="password" name="ssh_password" class="form-control" ng-model="$ctrl.ssh_params.ssh_password" required> |
33 | | - <p ng-show="authkeyModalForm.ssh_password.$invalid && !authkeyModalForm.ssh_password.$pristine" class="help-block">SSH password is required.</p> |
34 | | - </div> |
35 | | - </div> |
36 | | - </div> |
37 | | - <div class="modal-footer"> |
38 | | - <button type="submit" class="btn btn-primary" ng-disabled="authkeyModalForm.$invalid">Submit</button> |
39 | | - <button class="btn btn-default" ng-click="$ctrl.cancelForm()">Cancel</button> |
40 | | - </div> |
41 | | - </form> |
42 | | - </div> |
43 | 8 | .form-group{"ng-class" => "{'has-error': angularForm.subscriptions.$invalid}"} |
44 | 9 | %label.col-md-2.control-label |
45 | 10 | = _('Type') |
|
0 commit comments