2021-05-17 16:27:27 -04:00
{% extends 'base/layout.html' %}
2017-08-21 16:53:36 -04:00
{% load helpers %}
2021-12-13 15:36:51 -05:00
{% load render_table from django_tables2 %}
2023-07-29 03:30:25 +07:00
{% load i18n %}
2017-08-21 16:53:36 -04:00
2023-07-29 03:30:25 +07:00
{% block title %}{% blocktrans %}Remove {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblocktrans %}{% endblock %}
2017-08-21 16:53:36 -04:00
{% block content %}
2021-07-11 21:24:36 -04:00
< div class = "container-md px-0" >
< div class = "alert alert-danger" role = "alert" >
2023-07-29 03:30:25 +07:00
< h4 class = "alert-heading" > {% trans "Confirm Bulk Removal" %}< / h4 >
< p > < strong > {% blocktrans %}Warning:< / strong > The following operation will remove {{ table.rows|length }} {{ obj_type_plural }} from {{ parent_obj }}.{% endblocktrans %}< / p >
2021-07-11 21:24:36 -04:00
< hr / >
2023-07-29 03:30:25 +07:00
< p class = "mb-0" > {% blocktrans %}Please carefully review the {{ obj_type_plural }} to be removed and confirm below.{% endblocktrans %}< / p >
2021-07-11 21:24:36 -04:00
< / div >
2021-04-21 11:31:28 -07:00
< / div >
2021-07-11 21:24:36 -04:00
< div class = "container-xl px-0" >
2021-12-13 15:36:51 -05:00
< div class = "table-responsive" >
{% render_table table 'inc/table.html' %}
< / div >
2021-07-11 21:24:36 -04:00
< form action = "." method = "post" class = "form" >
{% csrf_token %}
{% for field in form.hidden_fields %}
{{ field }}
{% endfor %}
< div class = "text-center" >
2023-07-29 03:30:25 +07:00
< button type = "submit" name = "_confirm" class = "btn btn-danger" > {% blocktrans %}Delete these {{ table.rows|length }} {{ obj_type_plural }}{% endblocktrans %}< / button >
< a href = "{{ return_url }}" class = "btn btn-outline-dark" > {% trans "Cancel" %}< / a >
2017-08-21 16:53:36 -04:00
< / div >
2021-07-11 21:24:36 -04:00
< / form >
2021-04-21 11:31:28 -07:00
< / div >
2021-05-17 16:27:27 -04:00
{% endblock content %}