snapshot: Remove unnecessary column sizing

- Implement button-table class for tables with buttons about them.

Signed-off-by: Manish Tripathy <manisht@thougtworks.com>
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2018-06-18 19:17:20 +05:30
parent a596ad5f37
commit fd72909712
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
5 changed files with 99 additions and 110 deletions

View File

@ -26,8 +26,6 @@
<p>{% trans "Delete this snapshot permanently?" %}</p>
<div class="row">
<div class="col-lg-12">
<table class="table table-bordered table-condensed table-striped">
<thead>
<th>{% trans "Number" %}</th>
@ -42,8 +40,6 @@
</tr>
</tbody>
</table>
</div>
</div>
<p>
<form class="form" method="post">

View File

@ -26,8 +26,6 @@
<p>{% trans "Delete the following snapshots permanently?" %}</p>
<div class="row">
<div class="col-lg-12">
<table class="table table-bordered table-condensed table-striped">
<thead>
<th>{% trans "Number" %}</th>
@ -46,8 +44,6 @@
{% endfor %}
</tbody>
</table>
</div>
</div>
<p>
<form class="form" method="post">

View File

@ -23,8 +23,9 @@
{% block content %}
{% block configuration %}
<p>
<div class="row">
<div class="button-table">
<div class="button-row row">
<form class="form" method="post">
{% csrf_token %}
<div class="col-xs-6 text-left">
@ -44,11 +45,7 @@
</a>
</div>
</div>
</p>
<div class="row">
<div class="col-lg-12">
<table class="table table-bordered table-condensed table-striped">
<thead>
<th>{% trans "Number" %}</th>
@ -98,8 +95,7 @@
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}
{% endblock %}

View File

@ -34,8 +34,6 @@
{% endblocktrans %}
</p>
<div class="row">
<div class="col-lg-12">
<table class="table table-bordered table-condensed table-striped">
<thead>
<th>{% trans "Number" %}</th>
@ -50,8 +48,6 @@
</tr>
</tbody>
</table>
</div>
</div>
<p>
<form class="form" method="post">

View File

@ -280,3 +280,8 @@ a.menu_link_active {
height: 100px;
font-size: 80px
}
/* Button table - Tables with a list of actions as buttons on top */
.button-table > .button-row + .table {
margin-top: 10px;
}