Prettified the account deletion form.

This commit is contained in:
Johannes Erwerle 2026-10-03 09:14:22 +02:00
parent 535971333d
commit 40fa26e621

View file

@ -2,6 +2,9 @@
{% load crispy_forms_tags %} {% load crispy_forms_tags %}
{% block content %} {% block content %}
<h1>Delete your Account</h1>
<section class="section">
{% if next %} {% if next %}
{% if user.is_authenticated %} {% if user.is_authenticated %}
@ -15,8 +18,9 @@
<form method="post" action="{% url 'delete' %}"> <form method="post" action="{% url 'delete' %}">
{% csrf_token %} {% csrf_token %}
{{ form|crispy }} {{ form|crispy }}
<input class="button is-danger" type="submit" value="Delete Account"> <input class="button is-danger" type="submit" value="Delete Account">
<input type="hidden" name="next" value="{{ next }}"> <input type="hidden" name="next" value="{{ next }}">
</form> </form>
</section>
{% endblock %} {% endblock %}