All files / app/pages/reset-password-page reset-password-page.component.html

100% Statements 31/31
100% Branches 2/2
100% Functions 1/1
100% Lines 31/31

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 321x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
<grt-header-element [showReqCall]="false" [showCustReview]="true" [showContactUs]="true" [indexPage]="false"></grt-header-element>
<div class="reset-pass">
	<div class="inner is-smaller">
		<h1 class="center">Change your password</h1>
		<form [formGroup]="form.formData" action="" class="form">
			<div class="input">
				<input
					type="password"
					formControlName="password"
					placeholder="New password"
					[ngClass]="{
						'input-error': form.getErrors('password')?.length > 0,
					}"
				/>
				<app-validation-errors [errors]="form.getErrors('password')"></app-validation-errors>
			</div>
			<div class="input">
				<input
					type="password"
					formControlName="password_again"
					placeholder="Repeat new password"
					[ngClass]="{
						'input-error': form.getErrors('password_again')?.length > 0,
					}"
				/>
				<app-validation-errors [errors]="form.getErrors('password_again')"></app-validation-errors>
			</div>
			<button (click)="resetPassword()" class="btn btn-green form__submit wide uppercase">Save</button>
		</form>
	</div>
</div>