Ghost/ghost/admin/app/templates/reset.hbs
Kevin Ansfield aa229973ec Remove ember-one-way-controls (#959)
closes https://github.com/TryGhost/Ghost/issues/9386
- remove usage of `{{one-way-checkbox}}` in favour of direct HTML+handlebars
- add `{{gh-text-input}}` that inherits from Ember's built-in `TextInput` component along with our custom `TextInput` mixin
- swap all uses of `{{gh-input}}` for `{{gh-text-input}}
- remove `{{gh-input}}` component
- update `{{gh-textarea}}` to inherit from Ember's `TextArea` component instead of `OneWayTextarea` and update all component uses accordingly
- update `{{gh-trim-focus-input}}` to inherit from `{{gh-text-input}}` and update all component uses accordingly
- standardize on using the `focus-out` action naming rather than `focusOut` for all text inputs, this is because the text input components (especially `{{gh-trim-focus-input}}`) have their own `focusOut` handler which gets overridden if consumers supply their own `focusOut` attr
- drop `ember-one-way-controls` package
- add `ember-one-way-select` package
2018-02-28 11:44:03 +00:00

41 lines
1.9 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"}}>
{{#gh-form-group errors=errors hasValidated=hasValidated property="newPassword"}}
<span class="gh-input-icon gh-icon-lock">
{{inline-svg "lock"}}
{{gh-text-input
type="password"
name="newpassword"
placeholder="Password"
class="password"
autocorrect="off"
autofocus="autofocus"
value=(readonly newPassword)
input=(action (mut newPassword) value="target.value")}}
</span>
{{/gh-form-group}}
{{#gh-form-group errors=errors hasValidated=hasValidated property="ne2Password"}}
<span class="gh-input-icon gh-icon-lock">
{{inline-svg "lock"}}
{{gh-text-input
type="password"
name="ne2password"
placeholder="Confirm Password"
class="password"
autocorrect="off"
autofocus="autofocus"
value=(readonly ne2Password)
input=(action (mut ne2Password) value="target.value")}}
</span>
{{/gh-form-group}}
{{gh-task-button "Reset Password" task=resetPassword class="gh-btn gh-btn-blue gh-btn-block gh-btn-icon" type="submit" autoWidth="false"}}
</form>
<p class="main-error">{{flowErrors}}&nbsp;</p>
</section>
</div>
</div>