Clean up table sizing; remove cards

This commit is contained in:
jeremystretch 2021-07-11 21:24:36 -04:00
parent 0f99e5fcaa
commit 1b132379be
4 changed files with 54 additions and 84 deletions

View File

@ -4,8 +4,7 @@
{% 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 />
@ -15,18 +14,9 @@
{% block message_extra %}{% endblock %} {% block message_extra %}{% endblock %}
</div> </div>
</div> </div>
</div> <div class="container-xl px-0">
<div class="row">
<div class="col col-md-12 col-lg-8 offset-lg-2">
<div class="card">
<div class="card-body">
{% include 'inc/table.html' %} {% include 'inc/table.html' %}
</div>
</div>
</div>
</div>
<div class="row mt-3"> <div class="row mt-3">
<div class="col col-md-12 col-lg-8 offset-lg-2">
<form action="" method="post"> <form action="" method="post">
{% csrf_token %} {% csrf_token %}
{% for field in form.hidden_fields %} {% for field in form.hidden_fields %}

View File

@ -15,12 +15,8 @@
{% 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">
<div class="card-body">
{% include 'inc/table.html' %} {% 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">
<h5 class="card-header">{% block form_title %}Attributes{% endblock %}</h5> <h5 class="card-header">{% block form_title %}Attributes{% endblock %}</h5>

View File

@ -4,27 +4,16 @@
{% 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">
<div class="card">
<div class="card-body">
{% include 'inc/table.html' %} {% include 'inc/table.html' %}
</div>
</div>
</div>
</div>
<div class="row mb-3">
<div class="col col-md-6 offset-md-3">
<form action="." method="post" class="form"> <form action="." method="post" class="form">
{% csrf_token %} {% csrf_token %}
{% for field in form.hidden_fields %} {% for field in form.hidden_fields %}
@ -35,6 +24,5 @@
<button type="submit" name="_confirm" class="btn btn-danger">Delete these {{ table.rows|length }} {{ obj_type_plural }}</button> <button type="submit" name="_confirm" class="btn btn-danger">Delete these {{ table.rows|length }} {{ obj_type_plural }}</button>
</div> </div>
</form> </form>
</div>
</div> </div>
{% endblock content %} {% endblock content %}

View File

@ -7,8 +7,6 @@
{% 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">
<div class="card-body">
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
@ -26,8 +24,6 @@
</tbody> </tbody>
</table> </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">
{% csrf_token %} {% csrf_token %}