generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 97
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 #9 from Real-Dev-Squad/feat/PatchUser
feat(signup.js): Patch user details API integrated
- Loading branch information
Showing
4 changed files
with
130 additions
and
89 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 |
---|---|---|
@@ -1,27 +1,38 @@ | ||
<form class="form"> | ||
<h2>{{this.title}}</h2> | ||
{{#each this.fields as |field|}} | ||
{{#let this.formData as | myFormData |}} | ||
<FormInput | ||
@id={{field.id}} | ||
@for={{field.for}} | ||
@label={{field.label}} | ||
@type={{field.type}} | ||
@value='' | ||
@value={{get this.formData field.id}} | ||
@errorMessage={{field.errorMessage}} | ||
@required={{field.required}} | ||
@showError={{field.showError}} | ||
@onChange={{this.handleFieldChange}} | ||
@validator={{field.validator}} | ||
{{!-- @validator={{field.validator}} --}} | ||
/> | ||
{{/let}} | ||
{{/each}} | ||
<button | ||
class={{if this.isSubmitDisabled 'submitButton disabledButton' 'submitButton'}} | ||
type="submit" | ||
disabled={{this.isSubmitDisabled}} | ||
{{on 'click' (fn this.handleSubmit)}} | ||
> | ||
Submit | ||
</button> | ||
{{#if this.isSubmitDisabled }} | ||
<button | ||
class='submitButton disabledButton' | ||
type="submit" | ||
disabled={{true}} | ||
> | ||
Submit | ||
</button> | ||
{{else}} | ||
<button | ||
class='submitButton' | ||
type="submit" | ||
{{on 'click' (fn this.handleSubmit)}} | ||
> | ||
Submit | ||
</button> | ||
{{/if}} | ||
</form> | ||
|
||
{{outlet}} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.