2015-05-17 15:31:54 +03:00
|
|
|
<div class="gh-flow">
|
2014-07-30 19:04:03 +04:00
|
|
|
|
2015-05-17 15:31:54 +03:00
|
|
|
<div class="gh-flow-content-wrap">
|
|
|
|
<section class="gh-flow-content">
|
2017-09-04 22:17:04 +03:00
|
|
|
<header>
|
|
|
|
<h1>Create your account</h1>
|
|
|
|
</header>
|
2016-09-30 14:43:40 +03:00
|
|
|
|
2019-01-31 13:27:40 +03:00
|
|
|
<form id="signup" class="gh-flow-create" method="post" novalidate="novalidate" onsubmit={{action "submit"}}>
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhProfileImage @email={{this.signupDetails.email}} @setImage={{action "setImage"}} />
|
2016-09-30 14:43:40 +03:00
|
|
|
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhFormGroup @errors={{this.signupDetails.errors}} @hasValidated={{this.signupDetails.hasValidated}} @property="name">
|
2018-09-17 18:03:58 +03:00
|
|
|
<label for="name">Full name</label>
|
2017-09-04 22:17:04 +03:00
|
|
|
<span class="gh-input-icon gh-icon-user">
|
2018-03-19 12:57:31 +03:00
|
|
|
{{svg-jar "user-circle"}}
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhTrimFocusInput
|
|
|
|
@tabindex="1"
|
|
|
|
@type="text"
|
|
|
|
@id="display-name"
|
|
|
|
@name="display-name"
|
|
|
|
@placeholder="Eg. John H. Watson"
|
|
|
|
@autocorrect="off"
|
|
|
|
@autocomplete="name"
|
|
|
|
@value={{readonly this.signupDetails.name}}
|
|
|
|
@input={{action (mut this.signupDetails.name) value="target.value"}}
|
|
|
|
@focus-out={{action "validate" "name"}}
|
2019-01-31 13:27:40 +03:00
|
|
|
data-test-input="name"
|
2020-01-16 18:14:03 +03:00
|
|
|
/>
|
2017-09-04 22:17:04 +03:00
|
|
|
</span>
|
2019-12-13 19:11:49 +03:00
|
|
|
<GhErrorMessage @errors={{this.signupDetails.errors}} @property="name" />
|
2020-01-16 18:14:03 +03:00
|
|
|
</GhFormGroup>
|
2016-09-30 14:43:40 +03:00
|
|
|
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhFormGroup @errors={{this.signupDetails.errors}} @hasValidated={{this.signupDetails.hasValidated}} @property="email">
|
2019-02-11 14:35:27 +03:00
|
|
|
<label for="email">Email address</label>
|
|
|
|
<span class="gh-input-icon gh-icon-mail">
|
|
|
|
{{svg-jar "email"}}
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhTextInput
|
|
|
|
@tabindex="2"
|
|
|
|
@type="text"
|
|
|
|
@id="username"
|
|
|
|
@name="username"
|
|
|
|
@placeholder="Eg. john@example.com"
|
|
|
|
@autocorrect="off"
|
|
|
|
@autocomplete="username email"
|
|
|
|
@value={{readonly this.signupDetails.email}}
|
|
|
|
@input={{action (mut this.signupDetails.email) value="target.value"}}
|
|
|
|
@focus-out={{action "validate" "email"}}
|
2019-02-11 14:35:27 +03:00
|
|
|
data-test-input="email"
|
2020-01-16 18:14:03 +03:00
|
|
|
/>
|
2019-02-11 14:35:27 +03:00
|
|
|
</span>
|
2019-12-13 19:11:49 +03:00
|
|
|
<GhErrorMessage @errors={{this.signupDetails.errors}} @property="email" />
|
2020-01-16 18:14:03 +03:00
|
|
|
</GhFormGroup>
|
2019-02-11 14:35:27 +03:00
|
|
|
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhFormGroup @errors={{this.signupDetails.errors}} @hasValidated={{this.signupDetails.hasValidated}} @property="password">
|
2017-09-04 22:17:04 +03:00
|
|
|
<label for="password">Password</label>
|
|
|
|
<span class="gh-input-icon gh-icon-lock">
|
2018-03-19 12:57:31 +03:00
|
|
|
{{svg-jar "lock"}}
|
2020-01-16 18:14:03 +03:00
|
|
|
<GhTextInput
|
|
|
|
@tabindex="3"
|
|
|
|
@type="password"
|
|
|
|
@id="password"
|
|
|
|
@name="password"
|
|
|
|
@placeholder="At least 10 characters"
|
|
|
|
@autocorrect="off"
|
|
|
|
@autocomplete="new-password"
|
|
|
|
@value={{readonly this.signupDetails.password}}
|
|
|
|
@input={{action (mut this.signupDetails.password) value="target.value"}}
|
|
|
|
@focus-out={{action "validate" "password"}}
|
2019-01-31 13:27:40 +03:00
|
|
|
data-test-input="password"
|
2020-01-16 18:14:03 +03:00
|
|
|
/>
|
2017-09-04 22:17:04 +03:00
|
|
|
</span>
|
2019-12-13 19:11:49 +03:00
|
|
|
<GhErrorMessage @errors={{this.signupDetails.errors}} @property="password" />
|
2020-01-16 18:14:03 +03:00
|
|
|
</GhFormGroup>
|
2016-09-30 14:43:40 +03:00
|
|
|
|
2020-01-21 14:14:35 +03:00
|
|
|
<GhTaskButton @buttonText="Create Account" @type="submit" @form="signup" @defaultClick={{true}} @runningText="Creating"
|
|
|
|
@task={{this.signup}} @class="gh-btn-create-account gh-btn gh-btn-green gh-btn-lg gh-btn-block gh-btn-icon" @tabindex="3" />
|
|
|
|
</form>
|
2016-09-30 14:43:40 +03:00
|
|
|
|
2019-12-13 17:20:29 +03:00
|
|
|
<p class="main-error">{{if this.flowErrors this.flowErrors}} </p>
|
2015-05-17 15:31:54 +03:00
|
|
|
</section>
|
2014-07-17 15:34:40 +04:00
|
|
|
</div>
|
2015-05-17 15:31:54 +03:00
|
|
|
|
|
|
|
</div>
|