]>
Commit | Line | Data |
---|---|---|
67b1d3fe | 1 | <form role="form" (ngSubmit)="formValidated()" [formGroup]="form"> |
4c8749cb C |
2 | <div class="input-group"> |
3 | <input id="password" [attr.type]="showPassword ? 'text' : 'password'" class="form-control" | |
4 | formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" | |
5 | > | |
6 | <button class="btn btn-sm btn-outline-secondary" (click)="togglePasswordVisibility()" type="button"> | |
7 | <ng-container *ngIf="!showPassword" i18n>Show</ng-container> | |
8 | <ng-container *ngIf="!!showPassword" i18n>Hide</ng-container> | |
9 | </button> | |
10 | </div> | |
328c78bc | 11 | |
4c8749cb C |
12 | <div *ngIf="formErrors.password" class="form-error"> |
13 | {{ formErrors.password }} | |
328c78bc RK |
14 | </div> |
15 | ||
16 | <input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid"> | |
a3342ce2 | 17 | </form> |