mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
9d67980a7e
refs #5798, closes #5018 - adds new `gh-fullscreen-modal` component - modals are now specified in-context so that they can have deeper interaction with their surrounding components/controller/route, i.e. a modal component can be a thin confirm/deny wrapper over the underlying controller action keeping all context-sensitive logic in one place - adds spin-buttons to all modals with async behaviour - adds/improves behaviour of inline-validation in modals - improves re-authenticate modal to properly handle validation and authentication errors
17 lines
868 B
Handlebars
17 lines
868 B
Handlebars
<header class="modal-header">
|
|
<h1>Please re-authenticate</h1>
|
|
</header>
|
|
<a class="close icon-x" href="" title="Close" {{action "closeModal"}}><span class="hidden">Close</span></a>
|
|
|
|
<div class="modal-body {{if authenticationError 'error'}}">
|
|
<form id="login" class="login-form" method="post" novalidate="novalidate" {{action "confirm" on="submit"}}>
|
|
{{#gh-validation-status-container class="password-wrap" errors=errors property="password" hasValidated=hasValidated}}
|
|
{{input class="gh-input password" type="password" placeholder="Password" name="password" value=password}}
|
|
{{/gh-validation-status-container}}
|
|
{{#gh-spin-button class="btn btn-blue" type="submit" submitting=submitting}}Log in{{/gh-spin-button}}
|
|
</form>
|
|
{{#if authenticationError}}
|
|
<p class="response">{{authenticationError}}</p>
|
|
{{/if}}
|
|
</div>
|