2021-05-17 16:27:27 -04:00
|
|
|
{% extends 'base/layout.html' %}
|
2017-08-21 16:53:36 -04:00
|
|
|
{% load helpers %}
|
|
|
|
|
|
|
|
{% block title %}Remove {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2021-04-21 11:31:28 -07:00
|
|
|
<div class="row mb-3">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6 offset-md-3">
|
2021-04-21 11:31:28 -07:00
|
|
|
<div class="alert alert-danger" role="alert">
|
|
|
|
<h4 class="alert-heading">Confirm Bulk Removal</h4>
|
|
|
|
<p><strong>Warning:</strong> The following operation will remove {{ table.rows|length }} {{ obj_type_plural }} from {{ parent_obj }}.</p>
|
|
|
|
<hr />
|
|
|
|
<p class="mb-0">Please carefully review the {{ obj_type_plural }} to be removed and confirm below.</p>
|
2017-08-21 16:53:36 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-21 11:31:28 -07:00
|
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-12">
|
2021-04-21 11:31:28 -07:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
|
|
{% include 'inc/table.html' %}
|
2017-08-21 16:53:36 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-21 11:31:28 -07:00
|
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6 offset-md-3">
|
2021-04-21 11:31:28 -07:00
|
|
|
<form action="." method="post" class="form">
|
|
|
|
{% csrf_token %}
|
|
|
|
{% for field in form.hidden_fields %}
|
|
|
|
{{ field }}
|
|
|
|
{% endfor %}
|
|
|
|
<div class="text-center">
|
|
|
|
<a href="{{ return_url }}" class="btn btn-outline-dark">Cancel</a>
|
|
|
|
<button type="submit" name="_confirm" class="btn btn-danger">Delete these {{ table.rows|length }} {{ obj_type_plural }}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2017-08-21 16:53:36 -04:00
|
|
|
</div>
|
2021-04-21 11:31:28 -07:00
|
|
|
</div>
|
2021-05-17 16:27:27 -04:00
|
|
|
{% endblock content %}
|