-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1208 from sterapps/refactor-register-screen
Refactor register screen
- Loading branch information
Showing
6 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,4 @@ | |
button { | ||
margin-top: 10px; | ||
} | ||
|
||
anglify-form-field { | ||
margin-bottom: 10px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
<form class="form" role="form" autocomplete="off" id="formRegister" novalidate="" [formGroup]="form"> | ||
<anx-forms-input formControlName="username" [errors]="form.get('username').errors" [placeholder]="'Username'"></anx-forms-input> | ||
|
||
<anx-forms-input formControlName="first_name" [errors]="form.get('first_name').errors" [placeholder]="'First name'"></anx-forms-input> | ||
|
||
<anx-forms-input formControlName="last_name" [errors]="form.get('last_name').errors" [placeholder]="'Last name'"></anx-forms-input> | ||
|
||
<anx-forms-input formControlName="email" [errors]="form.get('email').errors" [placeholder]="'Email'"></anx-forms-input> | ||
|
||
<anx-forms-input | ||
formControlName="password" | ||
[errors]="form.get('password').errors" | ||
[placeholder]="'Password'" | ||
[type]="'password'" | ||
></anx-forms-input> | ||
|
||
<anx-forms-input | ||
formControlName="password_confirm" | ||
[errors]="form.get('password_confirm').errors" | ||
[placeholder]="'Password confirm'" | ||
[type]="'password'" | ||
></anx-forms-input> | ||
|
||
<button type="submit" class="btn btn-success" id="btnRegister" (click)="doRegister()">Register</button> | ||
<form class="form" role="form" autocomplete="off" id="formRegister" novalidate="" [formGroup]="form" (submit)="doRegister()"> | ||
<anglify-form-field label="Username" type="outlined"> | ||
<input anglifyInput name="username" formControlName="username" /> | ||
</anglify-form-field> | ||
<anglify-form-field label="First name" type="outlined"> | ||
<input anglifyInput name="firstname" formControlName="first_name" /> | ||
</anglify-form-field> | ||
<anglify-form-field label="Last name" type="outlined"> | ||
<input anglifyInput name="lastname" formControlName="last_name" /> | ||
</anglify-form-field> | ||
<anglify-form-field label="Email" type="outlined"> | ||
<input anglifyInput name="email" formControlName="email" /> | ||
</anglify-form-field> | ||
<anglify-form-field label="Password" type="outlined"> | ||
<input anglifyInput name="password" formControlName="password" type="password" /> | ||
</anglify-form-field> | ||
<anglify-form-field label="Password confirm" type="outlined"> | ||
<input anglifyInput name="password" formControlName="password_confirm" type="password" /> | ||
</anglify-form-field> | ||
<button anglifyButton type="submit" id="btnRegister">Register</button> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:host { | ||
button { | ||
margin-top: 10px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters