mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
97bb577496
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
18 lines
598 B
Handlebars
18 lines
598 B
Handlebars
<header class="modal-header">
|
|
<h1>Are you sure you want to leave this page?</h1>
|
|
</header>
|
|
<a class="close icon-x" href="" title="Close" {{action "closeModal"}}><span class="hidden">Close</span></a>
|
|
|
|
<div class="modal-body">
|
|
<p>
|
|
Hey there! It looks like you're in the middle of writing something and
|
|
you haven't saved all of your content.
|
|
</p>
|
|
|
|
<p>Save before you go!</p>
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
<button {{action "closeModal"}} class="btn btn-default btn-minor">Stay</button>
|
|
<button {{action "confirm"}} class="btn btn-red">Leave</button>
|
|
</div>
|