mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
{% extends 'base/layout.html' %}
|
|
{% load helpers %}
|
|
{% load render_table from django_tables2 %}
|
|
|
|
{% block title %}Remove {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container-md px-0">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
<div class="container-xl px-0">
|
|
<div class="table-responsive">
|
|
{% render_table table 'inc/table.html' %}
|
|
</div>
|
|
<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>
|
|
</div>
|
|
{% endblock content %}
|