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>
|
2022-03-08 20:30:46 +03:00
|
|
|
<div class="gh-site-icon" style={{site-icon-style}}></div>
|
|
|
|
<h1>Create your account.</h1>
|
2017-09-04 22:17:04 +03:00
|
|
|
</header>
|
2016-09-30 14:43:40 +03:00
|
|
|
|
2022-05-27 15:28:29 +03:00
|
|
|
<form id="signup" class="gh-signup" method="post" novalidate="novalidate" {{on "submit" this.submit}}>
|
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">
|
2022-05-27 15:28:29 +03:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
id="display-name"
|
|
|
|
name="display-name"
|
|
|
|
class="gh-input"
|
|
|
|
placeholder="Jamie Larson"
|
|
|
|
autocorrect="off"
|
|
|
|
autocomplete="name"
|
|
|
|
value={{this.signupDetails.name}}
|
|
|
|
{{on "input" (fn this.setSignupProperty "name")}}
|
|
|
|
{{on "blur" (fn this.trimSignupProperty "name")}}
|
|
|
|
{{on "blur" (fn this.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">
|
2022-05-27 15:28:29 +03:00
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
id="username"
|
|
|
|
name="username"
|
|
|
|
class="gh-input"
|
|
|
|
placeholder="jamie@example.com"
|
|
|
|
autocorrect="off"
|
|
|
|
autocomplete="username email"
|
|
|
|
value={{this.signupDetails.email}}
|
|
|
|
{{on "input" (fn this.setSignupProperty "email")}}
|
|
|
|
{{on "blur" (fn this.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">
|
2022-05-27 15:28:29 +03:00
|
|
|
<input
|
|
|
|
type="password"
|
|
|
|
id="password"
|
|
|
|
name="password"
|
|
|
|
class="gh-input"
|
|
|
|
placeholder="At least 10 characters"
|
|
|
|
autocorrect="off"
|
|
|
|
autocomplete="new-password"
|
|
|
|
value={{this.signupDetails.password}}
|
|
|
|
{{on "input" (fn this.setSignupProperty "password")}}
|
|
|
|
{{on "blur" (fn this.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
|
|
|
|
2022-05-27 14:13:54 +03:00
|
|
|
<GhTaskButton
|
|
|
|
@buttonText="Create Account →"
|
|
|
|
@runningText="Creating"
|
2022-05-27 15:28:29 +03:00
|
|
|
@task={{this.signupTask}}
|
2022-05-27 14:13:54 +03:00
|
|
|
@defaultClick={{true}}
|
|
|
|
@showSuccess={{false}}
|
|
|
|
type="submit"
|
|
|
|
form="signup"
|
|
|
|
class="gh-btn gh-btn-signup gh-btn-block gh-btn-icon"
|
|
|
|
style={{accent-color-background}}
|
|
|
|
data-test-button="signup"
|
|
|
|
/>
|
2020-01-21 14:14:35 +03:00
|
|
|
</form>
|
2022-03-08 20:30:46 +03:00
|
|
|
{{#if this.flowErrors}}
|
|
|
|
<p class="main-error">{{this.flowErrors}} </p>
|
|
|
|
{{/if}}
|
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>
|