-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update UI of delete confirmation page
- Loading branch information
Showing
1 changed file
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
{% extends 'base/base.html' %}{% load i18n %} | ||
{% block content %} | ||
<h2>{% trans "Delete"%} {{ resource_name }}: {{ object.name }}</h2> | ||
<form action="" method="post">{% csrf_token %} | ||
<p class="alert alert-danger">{% trans "Are you sure you want to permanently remove this "%}{{ resource_name }}?</p> | ||
<p><input type="submit" class="btn btn-danger" name="delete_confirm" value="{% trans "Delete" %}" /> <a class="btn btn-primary" href="{% url url_list %}">{% trans "Cancel" %}</a></p> | ||
</form> | ||
|
||
<section class="section"> | ||
<div class="container"> | ||
<h2 class="title is-4">{% trans "Delete"%} {{ resource_name }}: {{ object.name }}</h2> | ||
<form action="" method="post">{% csrf_token %} | ||
<div class="notification is-danger is-light"> | ||
<span class="icon"><i class="fas fa-exclamation-triangle"></i></span> | ||
{% trans "Are you sure you want to permanently remove this "%}{{ resource_name }}? | ||
</div> | ||
<div class="buttons"> | ||
<button type="submit" class="button is-danger" name="delete_confirm"> | ||
<span class="icon"><i class="fas fa-trash-alt"></i></span> | ||
<span>{% trans "Delete" %}</span> | ||
</button> | ||
<a class="button" href="{% url url_list %}"> | ||
<span class="icon"><i class="fas fa-times"></i></span> | ||
<span>{% trans "Cancel" %}</span> | ||
</a> | ||
</div> | ||
</form> | ||
</div> | ||
</section> | ||
{% endblock %} |