parent
16fe53cd32
commit
dc0149560c
6 changed files with 76 additions and 1 deletions
|
|
@ -58,6 +58,7 @@
|
|||
<button type="submit" class="navbar-item">Logout</button>
|
||||
</form>
|
||||
<a class="navbar-item" href="{% url 'password_change' %}">Change Password</a>
|
||||
<a class="navbar-item" href="{% url 'delete' %}">Delete Account</a>
|
||||
{% if user.is_staff %}
|
||||
<hr class="navbar-divider">
|
||||
<a class="navbar-item" href="{% url 'admin:index' %}">Admin</a>
|
||||
|
|
|
|||
22
community_backup/webui/templates/delete.html
Normal file
22
community_backup/webui/templates/delete.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{% extends "base.html" %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if next %}
|
||||
{% if user.is_authenticated %}
|
||||
<p>Your account doesn't have access to this page. To proceed,
|
||||
please login with an account that has access.</p>
|
||||
{% else %}
|
||||
<p>Please login to see this page.</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<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 }}">
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue