]>
Commit | Line | Data |
---|---|---|
d235f6b0 | 1 | <div class="margin-content"> |
a184c71b | 2 | |
d235f6b0 | 3 | <div class="title-page title-page-single"> |
f3aaa9a9 | 4 | Create an account |
d235f6b0 | 5 | </div> |
a184c71b | 6 | |
14063e96 | 7 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
897ec54d C |
8 | |
9 | <form role="form" (ngSubmit)="signup()" [formGroup]="form"> | |
10 | <div class="form-group"> | |
11 | <label for="username">Username</label> | |
12 | <input | |
9273b2d8 | 13 | type="text" id="username" placeholder="Username" |
a2b817d3 | 14 | formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }" |
897ec54d | 15 | > |
a2b817d3 | 16 | <div *ngIf="formErrors.username" class="form-error"> |
897ec54d C |
17 | {{ formErrors.username }} |
18 | </div> | |
a184c71b | 19 | </div> |
a184c71b | 20 | |
897ec54d C |
21 | <div class="form-group"> |
22 | <label for="email">Email</label> | |
23 | <input | |
9273b2d8 | 24 | type="text" id="email" placeholder="Email" |
a2b817d3 | 25 | formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }" |
897ec54d | 26 | > |
a2b817d3 | 27 | <div *ngIf="formErrors.email" class="form-error"> |
897ec54d C |
28 | {{ formErrors.email }} |
29 | </div> | |
a184c71b | 30 | </div> |
a184c71b | 31 | |
897ec54d C |
32 | <div class="form-group"> |
33 | <label for="password">Password</label> | |
34 | <input | |
9273b2d8 | 35 | type="password" id="password" placeholder="Password" |
a2b817d3 | 36 | formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" |
897ec54d | 37 | > |
a2b817d3 | 38 | <div *ngIf="formErrors.password" class="form-error"> |
897ec54d C |
39 | {{ formErrors.password }} |
40 | </div> | |
a184c71b | 41 | </div> |
a184c71b | 42 | |
d235f6b0 | 43 | <input type="submit" value="Signup" [disabled]="!form.valid"> |
897ec54d C |
44 | </form> |
45 | ||
897ec54d | 46 | </div> |