Use Bootstrap's table for db central columns page

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2020-11-27 16:14:13 -03:00
parent b7d9f13d8a
commit 532c1eee83
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
4 changed files with 10 additions and 28 deletions

View File

@ -7,12 +7,11 @@
method="post" action="{{ url('/database/central-columns') }}">
{{ get_hidden_inputs(db) }}
<input type="hidden" name="add_new_column" value="add_new_column">
<div class="responsivetable">
<table class="pma-table">
<thead>
<div class="table-responsive">
<table class="table table-light">
<thead class="thead-light">
<tr>
<th class=""></th>
<th class="hide"></th>
<th></th>
<th class="" title="" data-column="name">
{% trans 'Name' %}
<div class="sorticon"></div>
@ -45,6 +44,7 @@
{% trans 'A_I' %}
<div class="sorticon"></div>
</th>
<th></th>
</tr>
</thead>
<tbody>
@ -131,7 +131,7 @@
{% trans 'The central list of columns for the current database is empty' %}
</fieldset>
{% else %}
<table style="display:inline-block;max-width:49%" class="pma-table navigation nospacing nopadding">
<table class="table table-borderless table-sm w-auto d-inline-block navigation">
<tr>
<td class="navigation_separator"></td>
{% if pos - max_rows >= 0 %}
@ -172,8 +172,8 @@
</tr>
</table>
{% endif %}
{# getHtmlForAddColumn #}
<table class="pma-table central_columns_add_column navigation nospacing nopadding">
<table class="table table-borderless table-sm w-auto d-inline-block navigation">
<tr>
<td class="navigation_separator largescreenonly"></td>
<td class="central_columns_navigation">
@ -210,10 +210,10 @@
</form>
<div id="tableslistcontainer">
<form name="tableslistcontainer">
<table id="table_columns" class="pma-table tablesorter data">
<table id="table_columns" class="table table-light table-striped table-hover tablesorter">
{% set class = 'column_heading' %}
{% set title = 'Click to sort.' | trans %}
<thead>
<thead class="thead-light">
<tr>
<th class="{{ class }}"></th>
<th class="hide"></th>

View File

@ -882,12 +882,6 @@ label.col-3.d-flex.align-items-center {
padding: 1.5% 0 !important;
}
.central_columns_add_column {
display: inline-block;
margin-#{$left}: 1%;
max-width: 50%;
}
.message_errors_found {
margin-top: 20px;
}

View File

@ -683,12 +683,6 @@ form.login label {
padding: 1.5% 0 !important;
}
.central_columns_add_column {
display: inline-block;
margin-#{$left}: 1%;
max-width: 50%;
}
.message_errors_found {
margin-top: 20px;
}

View File

@ -930,12 +930,6 @@ label.col-3.d-flex.align-items-center {
padding: 1.5% 0 !important;
}
.central_columns_add_column {
display: inline-block;
margin-#{$left}: 1%;
max-width: 50%;
}
.message_errors_found {
margin-top: 20px;
}