blob: df6f6c9ba35d5b56a16c6e923c4bc08338997a54 (
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
57
58
59
60
61
62
63
64
65
|
<main id="content">
<summary class="title">Register</summary>
<form [formGroup]="registerUserFormGroup" (ngSubmit)="onSubmit()">
<hr>
<!-- Value: {{ registerUserFormGroup.value | json }}
<hr> -->
<section class="input-selection">
<input type="text" placeholder="Goshko, is that u?" class="input-field" formControlName="firstName" required>
<label class="input-field-label">First Name</label>
<mark class="input-errors">
<label *ngIf="registerUserFormGroup.get('firstName')?.errors?.required" class="error">*Required</label>
<label *ngIf="registerUserFormGroup.get('firstName')?.errors?.minlength" class="error">*Minimum 3 characters</label>
</mark>
</section>
<section class="input-selection">
<input type="text" placeholder="Trapov? Really??" class="input-field" formControlName="lastName" required>
<label class="input-field-label">Last Name</label>
<mark class="input-errors">
<label *ngIf="registerUserFormGroup.get('lastName')?.errors?.required" class="error">*Required</label>
<label *ngIf="registerUserFormGroup.get('lastName')?.errors?.minlength" class="error">*Minimum 3 characters</label>
</mark>
</section>
<section class="input-selection">
<input type="text" placeholder="Think of something cool to flex on other kids" class="input-field" formControlName="username" required>
<label class="input-field-label">Username</label>
<mark class="input-errors">
<label *ngIf="registerUserFormGroup.get('username')?.errors?.required" class="error">*Required</label>
<label *ngIf="registerUserFormGroup.get('username')?.errors?.minlength" class="error">*Minimum 3 characters</label>
</mark>
</section>
<section class="input-selection">
<input type="text" placeholder="You expect an email joke? I have none, mail me one" class="input-field" formControlName="email" required>
<label class="input-field-label">Email</label>
<mark class="input-errors">
<label *ngIf="registerUserFormGroup.get('email')?.errors?.required" class="error">*Required</label>
<label *ngIf="registerUserFormGroup.get('email')?.errors?.email" class="error">*Invalid email</label>
</mark>
</section>
<section class="input-selection">
<input type="password" placeholder="Make sure it's long & strong (just like my d***)" class="input-field" formControlName="password" required>
<label class="input-field-label">Password</label>
<mark class="input-errors">
<label *ngIf="registerUserFormGroup.get('password')?.errors?.required" class="error">*Required</label>
<label *ngIf="registerUserFormGroup.get('password')?.errors?.minlength" class="error">*Minimum 3 characters</label>
<label *ngIf="registerUserFormGroup.get('password')?.errors?.pattern" class="error">*At least 1 number</label>
</mark>
</section>
<hr>
<button class="submit-btn" type="submit">Submit</button>
<app-error-bar></app-error-bar>
</form>
<button class="submit-btn redirect-to-login" (click)="onRedirectLogin()">Already have an account? Login here</button>
</main>
|