diff options
author | JJ <nicetry@noemail.com> | 2025-03-30 20:56:01 +0100 |
---|---|---|
committer | JJ <nicetry@noemail.com> | 2025-03-30 20:56:01 +0100 |
commit | d518beb637e7c2776d84e87c63cc201c101ca89c (patch) | |
tree | abbfc7933285f829a23afeae09655e5d2106849b /templates/pages/account.html | |
parent | aa931dddf30700b6458a269389291b632a848ccb (diff) |
styling, sub instructions
Diffstat (limited to 'templates/pages/account.html')
-rw-r--r-- | templates/pages/account.html | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/templates/pages/account.html b/templates/pages/account.html index db28632..10a3789 100644 --- a/templates/pages/account.html +++ b/templates/pages/account.html @@ -1,5 +1,11 @@ -{% extends "base.html" %} {% block title %} account {% endblock %} {% block -heading %} +{% extends "base.html" %} {% block scripts %} + +<!-- Conditionally load index.js, as it's only needed on this page --> +<script + src="{{ url_for('static', filename='scripts/index.js') }}" + defer +></script> +{% endblock %} {% block title %} account {% endblock %} {% block heading %} <h1>Hey {{ session.username }} 👋</h1> {% endblock %} {% block content %} <p> @@ -13,4 +19,13 @@ heading %} <a href="mailto:hello@somwthing.com">here.</a> </p> <button hx-post="/logout">Logout</button> +<button id="show-modal">Delete account</button> +<dialog> + <p> + Are you sure you want to delete your account? This will erase all your data + including your recipes. + </p> + <button hx-delete="/delete-account">yes</button> + <button id="close-modal">cancel</button> +</dialog> {% endblock %} |