diff options
Diffstat (limited to 'client/src/app/+admin/users/user-edit/user-password.component.html')
-rw-r--r-- | client/src/app/+admin/users/user-edit/user-password.component.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/client/src/app/+admin/users/user-edit/user-password.component.html b/client/src/app/+admin/users/user-edit/user-password.component.html new file mode 100644 index 000000000..ee7d8dff5 --- /dev/null +++ b/client/src/app/+admin/users/user-edit/user-password.component.html | |||
@@ -0,0 +1,25 @@ | |||
1 | <form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> | ||
2 | <div class="form-group"> | ||
3 | |||
4 | <div class="input-group mb-3"> | ||
5 | <div class="input-group-prepend"> | ||
6 | <div class="input-group-text"> | ||
7 | <input type="checkbox" aria-label="Show password" (change)="togglePasswordVisibility()"> | ||
8 | </div> | ||
9 | </div> | ||
10 | <input id="passwordField" #passwordField | ||
11 | [attr.type]="showPassword ? 'text' : 'password'" id="password" | ||
12 | formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" | ||
13 | > | ||
14 | <div class="input-group-append"> | ||
15 | <button class="btn btn-sm btn-outline-secondary" (click)="generatePassword() " | ||
16 | type="button">Generate</button> | ||
17 | </div> | ||
18 | </div> | ||
19 | <div *ngIf="formErrors.password" class="form-error"> | ||
20 | {{ formErrors.password }} | ||
21 | </div> | ||
22 | </div> | ||
23 | |||
24 | <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid"> | ||
25 | </form> \ No newline at end of file | ||