Coverage for ivatar/ivataraccount/templates/delete.html: 100%

28 statements  

« prev     ^ index     » next       coverage.py v7.6.9, created at 2024-12-26 00:11 +0000

1{% extends 'base.html' %}  

2{% load i18n %} 

3{% load static %} 

4  

5{% block title %}{% trans 'Delete your Libravatar account' %}{% endblock title %} 

6  

7{% block content %} 

8  

9<h1>{% trans 'Delete your account' %}</h1> 

10  

11<p><strong>{% trans 'There is no way to undo this operation.' %}</strong></p> 

12  

13<form method="post" name="deleteaccount" id="form-deleteaccount">{% csrf_token %} 

14  

15{% if user.password %} 

16<p>{% trans 'Please confirm your identity by entering your current password.' %}</p> 

17  

18{{ form.password.errors }} 

19<div class="form-group" style='max-width:300px;'> 

20<label for="id_password">{% trans 'Password' %}:</label> 

21<input type="password" name="password" autofocus required class="form-control" id="id_password"> 

22</div> 

23  

24{% endif %} 

25  

26<p>{% trans 'Are you sure you want to <strong>permanently delete</strong> your Libravatar account?' %}</p> 

27  

28<button type="submit" class="btn btn-danger">{% trans 'Yes, delete all of my stuff' %}</button> 

29&nbsp; 

30<button type="cancel" class="button" href="{% url 'profile' %}">{% trans 'Cancel' %}</button> 

31  

32</form> 

33  

34<div style="height:40px"></div> 

35{% endblock content %}