aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/login/login.component.html
blob: d4f956d581add095de58a6526efd37ad19bd0c86 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<main id="content">
	<summary class="title">Login</summary>

	<form [formGroup]="loginUserFormGroup" (ngSubmit)="onSubmit()">
		<hr />

		<section class="input-selection">
			<input
				type="text"
				placeholder="Username"
				class="input-field"
				formControlName="username"
				required
			/>
			<label class="input-field-label">Username</label>

			<div class="input-errors">
				<label
					*ngIf="loginUserFormGroup.get('username')?.errors?.required"
					class="error"
					>*Required</label
				>
			</div>
		</section>

		<section class="input-selection">
			<input
				type="password"
				placeholder="Password"
				class="input-field"
				formControlName="password"
				required
			/>
			<label class="input-field-label">Password</label>

			<div class="input-errors">
				<label
					*ngIf="loginUserFormGroup.get('password')?.errors?.required"
					class="error"
					>*Required</label
				>
			</div>
		</section>

		<hr />
		<button class="submit-btn" type="submit">Submit</button>
		<app-error-bar></app-error-bar>
	</form>
	<button
		class="submit-btn redirect-to-register"
		(click)="onRedirectRegister()"
	>
		New to DevHive? Register instead
	</button>
	<app-footer></app-footer>
</main>