-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Expand file tree
/
Copy pathauth.html
More file actions
45 lines (45 loc) · 1.59 KB
/
auth.html
File metadata and controls
45 lines (45 loc) · 1.59 KB
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
<div class="auth-page">
<div class="container page">
<div class="row">
<div class="col-md-6 offset-md-3 col-xs-12">
<h1 class="text-xs-center">{{ title }}</h1>
<p class="text-xs-center">
@if (authType === 'register') {
<a [routerLink]="['/login']">Have an account?</a>
} @if (authType === 'login') {
<a [routerLink]="['/register']">Need an account?</a>
}
</p>
<app-list-errors [errors]="errors()" />
<form [formGroup]="authForm" (ngSubmit)="submitForm()">
<fieldset [disabled]="isSubmitting()">
<fieldset class="form-group">
@if (authType === 'register') {
<input
formControlName="username"
placeholder="Username"
class="form-control form-control-lg"
type="text"
/>
}
</fieldset>
<fieldset class="form-group">
<input formControlName="email" placeholder="Email" class="form-control form-control-lg" type="text" />
</fieldset>
<fieldset class="form-group">
<input
formControlName="password"
placeholder="Password"
class="form-control form-control-lg"
type="password"
/>
</fieldset>
<button class="btn btn-lg btn-primary pull-xs-right" [disabled]="!authForm.valid" type="submit">
{{ title }}
</button>
</fieldset>
</form>
</div>
</div>
</div>
</div>