blob: c521d44a2f6d50b204f3bb54790dacac75cbc645 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
<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>
<div 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
>
</div>
</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>
<div 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
>
</div>
</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>
<div 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
>
</div>
</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>
<div 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
>
</div>
</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>
<div 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
>
</div>
</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>
<app-footer></app-footer>
</main>
|