Consolidated bulk delete views to use a single template

This commit is contained in:
Jeremy Stretch
2016-05-11 15:18:39 -04:00
parent bacde242aa
commit a0ffd71755
18 changed files with 18 additions and 200 deletions

View File

@@ -0,0 +1,15 @@
{% extends 'utilities/confirmation_form.html' %}
{% load form_helpers %}
{% block title %}Delete {{ obj_type_plural|default:"objects" }}?{% endblock %}
{% block message %}
<p>
Are you sure you want to delete these {{ obj_type_plural|default:"objects" }}?
</p>
<ul>
{% for obj in selected_objects %}
<li><a href="{{ obj.get_absolute_url }}">{{ obj }}</a></li>
{% endfor %}
</ul>
{% endblock %}