Move instance > purge to a separate page

This commit is contained in:
Tom Wiesing 2023-11-10 16:03:37 +01:00
parent a2ad685b61
commit 1379b4d11a
No known key found for this signature in database
5 changed files with 79 additions and 20 deletions

View file

@ -0,0 +1,13 @@
<div class="pure-u-1-1">
<p>
Purging this instance completely removes it from the distillery.
Backups containing the instance will remain, but it will not be possible to restore it directly.
You must enter the slug <code>{{ .Instance.Slug }}</code> to confirm purging.
</p>
<form class="pure-form">
<fieldset>
<input type="text" id="purge-confirm-slug" placeholder="{{ .Instance.Slug }}" />
<button class="remote-action pure-button pure-button-danger" data-action="purge" data-param="{{ .Instance.Slug }}" data-confirm-param="#purge-confirm-slug" data-buffer="1000" data-force-reload="/admin/">Purge Instance</button>
</fieldset>
</form>
</div>