mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
4b2d7b122a
closes #5544 - Added profile image into `signup.hbs` - Added image handling in `signup.js` controller - Uses session authenticated user to upload image
51 lines
2.9 KiB
Handlebars
51 lines
2.9 KiB
Handlebars
<div class="gh-flow">
|
|
|
|
<div class="gh-flow-content-wrap">
|
|
<section class="gh-flow-content">
|
|
<header>
|
|
<h1>Create your account</h1>
|
|
</header>
|
|
|
|
<form id="signup" class="gh-flow-create" method="post" novalidate="novalidate">
|
|
{{!-- Hack to stop Chrome's broken auto-fills --}}
|
|
<input style="display:none;" type="text" name="fakeusernameremembered"/>
|
|
<input style="display:none;" type="password" name="fakepasswordremembered"/>
|
|
|
|
{{gh-profile-image fileStorage=config.fileStorage email=validEmail setImage="setImage"}}
|
|
{{#gh-form-group errors=model.errors property="email"}}
|
|
<label for="email-address">Email address</label>
|
|
<span class="input-icon icon-mail">
|
|
{{gh-input type="email" name="email" placeholder="Eg. john@example.com" class="gh-input" enter=(action "signup") disabled=true autocorrect="off" value=model.email focusOut=(action "handleEmail")}}
|
|
</span>
|
|
{{gh-error-message errors=model.errors property="email"}}
|
|
{{/gh-form-group}}
|
|
{{#gh-form-group errors=model.errors property="name"}}
|
|
<label for="full-name">Full name</label>
|
|
<span class="input-icon icon-user">
|
|
{{gh-input type="text" name="name" placeholder="Eg. John H. Watson" class="gh-input" enter=(action "signup") autofocus="autofocus" autocorrect="off" value=model.name focusOut=(action "validate" "name")}}
|
|
</span>
|
|
{{gh-error-message errors=model.errors property="name"}}
|
|
{{/gh-form-group}}
|
|
{{#gh-form-group errors=model.errors property="password"}}
|
|
<label for="password">Password</label>
|
|
<span class="input-icon icon-lock">
|
|
{{input class="gh-input" type="password" name="password" autofocus="autofocus" enter=(action "signup") autocorrect="off" value=model.password focusOut=(action "validate" "password")}}
|
|
<div class="pw-strength">
|
|
<div class="pw-strength-dot"></div>
|
|
<div class="pw-strength-dot"></div>
|
|
<div class="pw-strength-dot"></div>
|
|
<div class="pw-strength-dot"></div>
|
|
<div class="pw-strength-dot <!--pw-strength-activedot-->"></div>
|
|
</div>
|
|
</span>
|
|
{{gh-error-message errors=model.errors property="password"}}
|
|
{{/gh-form-group}}
|
|
</form>
|
|
|
|
{{gh-spin-button type="submit" class="btn btn-green btn-lg btn-block" action="signup" submitting=submitting buttonText="Create Account" autoWidth=false}}
|
|
<p class="main-error">{{{flowErrors}}}</p>
|
|
</section>
|
|
</div>
|
|
|
|
</div>
|