diff options
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 %} |