mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Clean up table sizing; remove cards
This commit is contained in:
parent
0f99e5fcaa
commit
1b132379be
@ -4,39 +4,29 @@
|
|||||||
{% block title %}Delete {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblock %}
|
{% block title %}Delete {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="container-md px-0">
|
||||||
<div class="col col-md-12 col-lg-8 offset-lg-2">
|
<div class="alert alert-danger mb-3" role="alert">
|
||||||
<div class="alert alert-danger mb-3" role="alert">
|
<h4 class="alert-heading">Confirm Bulk Deletion</h4>
|
||||||
<h4 class="alert-heading">Confirm Bulk Deletion</h4>
|
<hr />
|
||||||
<hr />
|
<div>
|
||||||
<div>
|
<strong>Warning:</strong> The following operation will delete <strong>{{ table.rows|length }}</strong> {{ obj_type_plural }}. Please carefully review the {{ obj_type_plural }} to be deleted and confirm below.
|
||||||
<strong>Warning:</strong> The following operation will delete <strong>{{ table.rows|length }}</strong> {{ obj_type_plural }}. Please carefully review the {{ obj_type_plural }} to be deleted and confirm below.
|
|
||||||
</div>
|
|
||||||
{% block message_extra %}{% endblock %}
|
|
||||||
</div>
|
</div>
|
||||||
|
{% block message_extra %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="container-xl px-0">
|
||||||
<div class="col col-md-12 col-lg-8 offset-lg-2">
|
{% include 'inc/table.html' %}
|
||||||
<div class="card">
|
<div class="row mt-3">
|
||||||
<div class="card-body">
|
<form action="" method="post">
|
||||||
{% include 'inc/table.html' %}
|
{% csrf_token %}
|
||||||
</div>
|
{% for field in form.hidden_fields %}
|
||||||
|
{{ field }}
|
||||||
|
{% endfor %}
|
||||||
|
<div class="text-end">
|
||||||
|
<a href="{{ return_url }}" class="btn btn-outline-dark">Cancel</a>
|
||||||
|
<button type="submit" name="_confirm" class="btn btn-danger">Delete {{ table.rows|length }} {{ obj_type_plural }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="row mt-3">
|
|
||||||
<div class="col col-md-12 col-lg-8 offset-lg-2">
|
|
||||||
<form action="" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
{% for field in form.hidden_fields %}
|
|
||||||
{{ field }}
|
|
||||||
{% endfor %}
|
|
||||||
<div class="text-end">
|
|
||||||
<a href="{{ return_url }}" class="btn btn-outline-dark">Cancel</a>
|
|
||||||
<button type="submit" name="_confirm" class="btn btn-danger">Delete {{ table.rows|length }} {{ obj_type_plural }}</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -15,11 +15,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
<div class="col col-md-8">
|
<div class="col col-md-8">
|
||||||
<div class="card">
|
{% include 'inc/table.html' %}
|
||||||
<div class="card-body">
|
|
||||||
{% include 'inc/table.html' %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-md-4">
|
<div class="col col-md-4">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
@ -4,37 +4,25 @@
|
|||||||
{% block title %}Remove {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblock %}
|
{% block title %}Remove {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="container-md px-0">
|
||||||
<div class="col col-md-6 offset-md-3">
|
<div class="alert alert-danger" role="alert">
|
||||||
<div class="alert alert-danger" role="alert">
|
<h4 class="alert-heading">Confirm Bulk Removal</h4>
|
||||||
<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>
|
||||||
<p><strong>Warning:</strong> The following operation will remove {{ table.rows|length }} {{ obj_type_plural }} from {{ parent_obj }}.</p>
|
<hr />
|
||||||
<hr />
|
<p class="mb-0">Please carefully review the {{ obj_type_plural }} to be removed and confirm below.</p>
|
||||||
<p class="mb-0">Please carefully review the {{ obj_type_plural }} to be removed and confirm below.</p>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row mb-3">
|
<div class="container-xl px-0">
|
||||||
<div class="col col-md-12">
|
{% include 'inc/table.html' %}
|
||||||
<div class="card">
|
<form action="." method="post" class="form">
|
||||||
<div class="card-body">
|
{% csrf_token %}
|
||||||
{% include 'inc/table.html' %}
|
{% for field in form.hidden_fields %}
|
||||||
</div>
|
{{ field }}
|
||||||
</div>
|
{% endfor %}
|
||||||
</div>
|
<div class="text-center">
|
||||||
</div>
|
<a href="{{ return_url }}" class="btn btn-outline-dark">Cancel</a>
|
||||||
<div class="row mb-3">
|
<button type="submit" name="_confirm" class="btn btn-danger">Delete these {{ table.rows|length }} {{ obj_type_plural }}</button>
|
||||||
<div class="col col-md-6 offset-md-3">
|
|
||||||
<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>
|
</div>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
@ -7,26 +7,22 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
<div class="col col-md-7">
|
<div class="col col-md-7">
|
||||||
<div class="card">
|
<table class="table">
|
||||||
<div class="card-body">
|
<thead>
|
||||||
<table class="table">
|
<tr>
|
||||||
<thead>
|
<th>Current Name</th>
|
||||||
<tr>
|
<th>New Name</th>
|
||||||
<th>Current Name</th>
|
</tr>
|
||||||
<th>New Name</th>
|
</thead>
|
||||||
</tr>
|
<tbody>
|
||||||
</thead>
|
{% for obj in selected_objects %}
|
||||||
<tbody>
|
<tr{% if obj.new_name and obj.name != obj.new_name %} class="success"{% endif %}>
|
||||||
{% for obj in selected_objects %}
|
<td>{{ obj.name }}</td>
|
||||||
<tr{% if obj.new_name and obj.name != obj.new_name %} class="success"{% endif %}>
|
<td>{{ obj.new_name }}</td>
|
||||||
<td>{{ obj.name }}</td>
|
</tr>
|
||||||
<td>{{ obj.new_name }}</td>
|
{% endfor %}
|
||||||
</tr>
|
</tbody>
|
||||||
{% endfor %}
|
</table>
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-md-5">
|
<div class="col col-md-5">
|
||||||
<form action="" method="post" class="form form-horizontal">
|
<form action="" method="post" class="form form-horizontal">
|
||||||
|
Loading…
Reference in New Issue
Block a user