Prettified the account deletion form.
This commit is contained in:
parent
535971333d
commit
40fa26e621
1 changed files with 6 additions and 2 deletions
|
|
@ -2,6 +2,9 @@
|
|||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Delete your Account</h1>
|
||||
|
||||
<section class="section">
|
||||
|
||||
{% if next %}
|
||||
{% if user.is_authenticated %}
|
||||
|
|
@ -15,8 +18,9 @@
|
|||
<form method="post" action="{% url 'delete' %}">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
<input class="button is-danger" type="submit" value="Delete Account">
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
<input class="button is-danger" type="submit" value="Delete Account">
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
</form>
|
||||
</section>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue