1 <cd-modal [modalRef]="bsModalRef">
2 <ng-container class="modal-title"
3 i18n>Discovery Authentication</ng-container>
5 <ng-container class="modal-content">
6 <form name="discoveryForm"
8 [formGroup]="discoveryForm"
10 <div class="modal-body">
12 <div class="form-group row"
13 [ngClass]="{':invalid': discoveryForm.showError('user', formDir)}">
14 <label class="col-form-label col-sm-4"
17 <div class="col-sm-8">
20 formControlName="user"
22 <span class="form-text text-muted"
23 *ngIf="discoveryForm.showError('user', formDir, 'required')"
24 i18n>This field is required.</span>
26 <span class="form-text text-muted"
27 *ngIf="discoveryForm.showError('user', formDir, 'pattern')"
28 i18n>Usernames must have a length of 8 to 64 characters and
29 can only contain letters, '.', '@', '-', '_' or ':'.</span>
34 <div class="form-group row"
35 [ngClass]="{':invalid': discoveryForm.showError('password', formDir)}">
36 <label class="col-form-label col-sm-4"
39 <div class="col-sm-8">
40 <div class="input-group">
43 formControlName="password"
46 <span class="input-group-append">
49 cdPasswordButton="password">
53 cdCopy2ClipboardButton="password">
57 <span class="form-text text-muted"
58 *ngIf="discoveryForm.showError('password', formDir, 'required')"
59 i18n>This field is required.</span>
61 <span class="form-text text-muted"
62 *ngIf="discoveryForm.showError('password', formDir, 'pattern')"
63 i18n>Passwords must have a length of 12 to 16 characters
64 and can only contain letters, '@', '-', '_' or '/'.</span>
69 <div class="form-group row"
70 [ngClass]="{':invalid': discoveryForm.showError('mutual_user', formDir)}">
71 <label class="col-form-label col-sm-4"
73 <ng-container i18n>Mutual User</ng-container>
75 <div class="col-sm-8">
76 <input id="mutual_user"
78 formControlName="mutual_user"
81 <span class="form-text text-muted"
82 *ngIf="discoveryForm.showError('mutual_user', formDir, 'required')"
83 i18n>This field is required.</span>
85 <span class="form-text text-muted"
86 *ngIf="discoveryForm.showError('mutual_user', formDir, 'pattern')"
87 i18n>Usernames must have a length of 8 to 64 characters and
88 can only contain letters, '.', '@', '-', '_' or ':'.</span>
92 <!-- mutual_password -->
93 <div class="form-group row"
94 [ngClass]="{':invalid': discoveryForm.showError('mutual_password', formDir)}">
95 <label class="col-form-label col-sm-4"
97 i18n>Mutual Password</label>
98 <div class="col-sm-8">
99 <div class="input-group">
100 <input id="mutual_password"
102 formControlName="mutual_password"
105 <span class="input-group-append">
106 <button type="button"
107 class="btn btn-light"
108 cdPasswordButton="mutual_password">
110 <button type="button"
111 class="btn btn-light"
112 cdCopy2ClipboardButton="mutual_password">
116 <span class="form-text text-muted"
117 *ngIf="discoveryForm.showError('mutual_password', formDir, 'required')"
118 i18n>This field is required.</span>
120 <span class="form-text text-muted"
121 *ngIf="discoveryForm.showError('mutual_password', formDir, 'pattern')"
122 i18n>Passwords must have a length of 12 to 16 characters and
123 can only contain letters, '@', '-', '_' or '/'.</span>
128 <div class="modal-footer">
129 <div class="button-group text-right">
130 <cd-submit-button (submitAction)="submitAction()"
131 [form]="discoveryForm"
132 *ngIf="hasPermission"
133 i18n>Submit</cd-submit-button>
134 <cd-back-button [back]="bsModalRef.hide"