| 1 |
{% extends "base.html" %} |
| 2 |
|
| 3 |
{% block title %}Delete Account - Makenot.work{% endblock %} |
| 4 |
{% block body_attrs %} class="padded-page delete-account-page"{% endblock %} |
| 5 |
|
| 6 |
{% block head %} |
| 7 |
{% endblock %} |
| 8 |
|
| 9 |
{% block content %} |
| 10 |
{% include "partials/site_header.html" %} |
| 11 |
|
| 12 |
<div class="container"> |
| 13 |
<a href="/dashboard" class="back-link">← Back to Dashboard</a> |
| 14 |
|
| 15 |
<header> |
| 16 |
<h1 class="page-title">Delete Account</h1> |
| 17 |
<p class="subtitle">This action cannot be undone.</p> |
| 18 |
</header> |
| 19 |
|
| 20 |
<div class="warning-box"> |
| 21 |
<h3>What will be deleted:</h3> |
| 22 |
<ul> |
| 23 |
<li>All your projects and items</li> |
| 24 |
<li>All uploaded content (audio files, cover images)</li> |
| 25 |
<li>Your profile and account settings</li> |
| 26 |
<li>Your custom links</li> |
| 27 |
</ul> |
| 28 |
<p class="mt-4 text-sm"> |
| 29 |
<strong>Note:</strong> Purchases made by others will remain accessible to them. |
| 30 |
</p> |
| 31 |
</div> |
| 32 |
|
| 33 |
<div class="export-prompt"> |
| 34 |
<h3>Export your data first?</h3> |
| 35 |
<p>Before deleting your account, you may want to download a copy of your projects, content, and transaction history.</p> |
| 36 |
<a href="/dashboard/export" class="btn-secondary">Go to Export Portal</a> |
| 37 |
</div> |
| 38 |
|
| 39 |
<div class="delete-form"> |
| 40 |
<form hx-post="/api/account/request-deletion" |
| 41 |
hx-target="#form-status" |
| 42 |
hx-swap="innerHTML" |
| 43 |
hx-indicator="#delete-spinner"> |
| 44 |
{% if let Some(token) = csrf_token %}<input type="hidden" name="_csrf" value="{{ token }}">{% endif %} |
| 45 |
|
| 46 |
<div class="form-group"> |
| 47 |
<label for="username-confirm">Type your username to confirm</label> |
| 48 |
<input type="text" |
| 49 |
id="username-confirm" |
| 50 |
name="username" |
| 51 |
autocomplete="off" |
| 52 |
autocorrect="off" |
| 53 |
autocapitalize="off" |
| 54 |
spellcheck="false" |
| 55 |
data-lpignore="true" |
| 56 |
data-form-type="other" |
| 57 |
placeholder="{{ username }}" |
| 58 |
required> |
| 59 |
<div class="hint">Enter "{{ username }}" exactly as shown</div> |
| 60 |
</div> |
| 61 |
|
| 62 |
<div class="form-actions"> |
| 63 |
<button type="submit" class="btn-danger"> |
| 64 |
Send Deletion Email |
| 65 |
<span id="delete-spinner" class="htmx-indicator"> ...</span> |
| 66 |
</button> |
| 67 |
<span id="form-status" class="form-status"></span> |
| 68 |
</div> |
| 69 |
</form> |
| 70 |
</div> |
| 71 |
</div> |
| 72 |
{% endblock %} |
| 73 |
|