mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 07:08:05 +00:00
Moved confirm_delete.html to project templates
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
{% load bootstrap4 %}
|
||||
{% load icons %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{%trans "Delete" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<div class="alert alert-warning">
|
||||
{%trans "Are you sure you want to delete" %} "{{ object }}"?
|
||||
</div>
|
||||
<a class="btn btn-primary" href="javascript:history.back()">{% icon 'times' %} {% trans "Cancel" %}</a>
|
||||
<button type="submit" class="btn btn-danger">
|
||||
{% icon 'check' %} {% trans "Delete" %}
|
||||
</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -67,7 +67,7 @@ def group_delete(request, pk):
|
||||
|
||||
return render(
|
||||
request,
|
||||
'admin/common/confirm_delete.html',
|
||||
'common/confirm_delete.html',
|
||||
{'object': group},
|
||||
)
|
||||
|
||||
@@ -141,7 +141,7 @@ def user_delete(request, pk):
|
||||
|
||||
return render(
|
||||
request,
|
||||
'admin/common/confirm_delete.html',
|
||||
'common/confirm_delete.html',
|
||||
{'object': user},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user