1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/templates/reset.hbs
Kevin Ansfield 571c0881ef 🐛 Fixed autofocus on password reset screen
no issue

- autofocus was running on both inputs so the "confirm" input was winning out
- updated copy
2020-05-07 10:33:27 +01:00

40 lines
2 KiB
Handlebars

<div class="gh-flow">
<div class="gh-flow-content-wrap">
<section class="gh-flow-content fade-in">
<form id="reset" class="gh-signin" method="post" novalidate="novalidate" {{action "submit" on="submit"}}>
<GhFormGroup @errors={{this.errors}} @hasValidated={{this.hasValidated}} @property="newPassword">
<span class="gh-input-icon gh-icon-lock">
{{svg-jar "lock"}}
<GhTextInput
@type="password"
@name="newpassword"
@placeholder="New password"
@class="password"
@autocorrect="off"
@shouldFocus={{true}}
@value={{readonly this.newPassword}}
@input={{action (mut this.newPassword) value="target.value"}} />
</span>
</GhFormGroup>
<GhFormGroup @errors={{this.errors}} @hasValidated={{this.hasValidated}} @property="ne2Password">
<span class="gh-input-icon gh-icon-lock">
{{svg-jar "lock"}}
<GhTextInput
@type="password"
@name="ne2password"
@placeholder="Confirm new password"
@class="password"
@autocorrect="off"
@value={{readonly this.ne2Password}}
@input={{action (mut this.ne2Password) value="target.value"}} />
</span>
</GhFormGroup>
<GhTaskButton @buttonText="Save new password" @task={{this.resetPassword}} @class="gh-btn gh-btn-blue gh-btn-block gh-btn-icon" @type="submit" @autoWidth="false" />
</form>
<p class="main-error">{{this.flowErrors}}&nbsp;</p>
</section>
</div>
</div>