1
0
Fork 0
peertube/client/src/app/+admin/overview/users/user-edit/user-password.component.html

21 lines
775 B
HTML

<form role="form" (ngSubmit)="formValidated()" [formGroup]="form">
<div class="input-group">
<input id="password"
[attr.type]="showPassword ? 'text' : 'password'" class="form-control"
formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
autocomplete="new-password"
>
<button class="btn btn-sm btn-outline-secondary" (click)="togglePasswordVisibility()" type="button">
<ng-container *ngIf="!showPassword" i18n>Show</ng-container>
<ng-container *ngIf="!!showPassword" i18n>Hide</ng-container>
</button>
</div>
<div *ngIf="formErrors.password" class="form-error">
{{ formErrors.password }}
</div>
<input type="submit" value="{{ getFormButtonTitle() }}" [disabled]="!form.valid">
</form>