1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Moved confirm_delete.html to project templates

This commit is contained in:
Real-Gecko 2020-06-15 16:30:27 +06:00
parent 354163fa1d
commit 68f7376d15
2 changed files with 2 additions and 2 deletions

View file

@ -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 %}

View file

@ -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},
)