Remove .pma-fieldset CSS class from database/structure templates

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-06-10 14:29:35 -03:00
parent fa8931e88c
commit 2b72074089
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8
10 changed files with 122 additions and 170 deletions

View File

@ -1781,14 +1781,6 @@ div#page_content div {
}
}
table.show_create {
margin-top: 1em;
td {
border-right: 1px solid #bbb;
}
}
#alias_modal {
table {
width: 100%;

View File

@ -2050,14 +2050,6 @@ div#page_content div {
}
}
table.show_create {
margin-top: 1em;
td {
border-right: 1px solid #bbb;
}
}
#alias_modal {
table th {
vertical-align: middle;

View File

@ -1784,14 +1784,6 @@ div#page_content div {
}
}
table.show_create {
margin-top: 1em;
td {
border-right: 1px solid #bbb;
}
}
#alias_modal {
table {
width: 100%;

View File

@ -1966,14 +1966,6 @@ div#page_content div {
}
}
table.show_create {
margin-top: 1em;
td {
border-right: 1px solid #bbb;
}
}
#alias_modal {
table {
width: 100%;

View File

@ -1,15 +1,7 @@
<form id="ajax_form" action="{{ url('/database/structure/add-prefix-table') }}" method="post">
{{ get_hidden_inputs(url_params) }}
<fieldset class="pma-fieldset input">
<table>
<tr>
<td>{% trans 'Add prefix' %}</td>
<td>
<input type="text" name="add_prefix" id="txtPrefix" aria-label="{% trans 'Add prefix' %}">
</td>
</tr>
<tr>
</table>
</fieldset>
<div>
<label for="addTablePrefixInput" class="form-label">{% trans 'Add prefix' %}</label>
<input type="text" class="form-control" id="addTablePrefixInput" name="add_prefix">
</div>
</form>

View File

@ -1,20 +1,11 @@
<form id="ajax_form" action="{{ url(route) }}" method="post">
{{ get_hidden_inputs(url_params) }}
<fieldset class="pma-fieldset input">
<table>
<tr>
<td>{% trans 'From' %}</td>
<td>
<input type="text" name="from_prefix" id="initialPrefix">
</td>
</tr>
<tr>
<td>{% trans 'To' %}</td>
<td>
<input type="text" name="to_prefix" id="newPrefix">
</td>
</tr>
</table>
</fieldset>
<div class="mb-3">
<label for="initialPrefixInput" class="form-label">{% trans 'From' %}</label>
<input type="text" class="form-control" id="initialPrefixInput" name="from_prefix">
</div>
<div>
<label for="newPrefixInput" class="form-label">{% trans 'To' %}</label>
<input type="text" class="form-control" id="newPrefixInput" name="to_prefix">
</div>
</form>

View File

@ -1,54 +1,49 @@
<form id="ajax_form" action="{{ url('/database/structure/copy-table') }}" method="post">
{{ get_hidden_inputs(url_params) }}
<fieldset class="pma-fieldset">
<strong><label for="db_name_dropdown">{% trans 'Database:' %}</label></strong>
<select id="db_name_dropdown" name="target_db">
<div class="mb-3">
<label for="databaseNameSelect" class="form-label">{% trans 'Database:' %}</label>
<select class="form-select" id="databaseNameSelect" name="target_db">
{% for each_db in options %}
<option value="{{ each_db.name }}"{{ each_db.is_selected ? ' selected' }}>{{ each_db.name }}</option>
{% endfor %}
</select>
</div>
<br><br>
<fieldset class="mb-3">
<legend class="col-form-label">{% trans 'Options:' %}</legend>
<div class="form-check">
<input class="form-check-input" type="radio" name="what" id="whatDataRadio" value="data" checked>
<label class="form-check-label" for="whatDataRadio">{% trans 'Structure and data' %}</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="what" id="whatStructureRadio" value="structure">
<label class="form-check-label" for="whatStructureRadio">{% trans 'Structure only' %}</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="what" id="whatDataOnlyRadio" value="dataonly">
<label class="form-check-label" for="whatDataOnlyRadio">{% trans 'Data only' %}</label>
</div>
</fieldset>
<strong><label>{% trans 'Options:' %}</label></strong>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="true" name="drop_if_exists" id="addDropTableCheckbox">
<label class="form-check-label" for="addDropTableCheckbox">{% trans 'Add DROP TABLE' %}</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="1" name="sql_auto_increment" id="addAutoIncrementCheckbox">
<label class="form-check-label" for="addAutoIncrementCheckbox">{% trans 'Add AUTO INCREMENT value' %}</label>
</div>
<div class="form-check mb-3">
<input class="form-check-input" type="checkbox" value="1" name="add_constraints" id="addConstraintsCheckbox" checked>
<label class="form-check-label" for="addConstraintsCheckbox">{% trans 'Add constraints' %}</label>
</div>
<br>
<input type="radio" id="what_structure" value="structure" name="what">
<label for="what_structure">{% trans 'Structure only' %}</label>
<br>
<input type="radio" id="what_data" value="data" name="what" checked>
<label for="what_data">{% trans 'Structure and data' %}</label>
<br>
<input type="radio" id="what_dataonly" value="dataonly" name="what">
<label for="what_dataonly">{% trans 'Data only' %}</label>
<br><br>
<input type="checkbox" id="checkbox_drop" value="true" name="drop_if_exists">
<label for="checkbox_drop">{% trans 'Add DROP TABLE' %}</label>
<br>
<input type="checkbox" id="checkbox_auto_increment_cp" value="1" name="sql_auto_increment">
<label for="checkbox_auto_increment_cp">{% trans 'Add AUTO INCREMENT value' %}</label>
<br>
<input type="checkbox" id="checkbox_constraints" value="1" name="sql_auto_increment" checked>
<label for="checkbox_constraints">{% trans 'Add constraints' %}</label>
<br><br>
<input type="checkbox" name="adjust_privileges" value="1" id="checkbox_adjust_privileges" checked>
<label for="checkbox_adjust_privileges">
<div class="form-check">
<input class="form-check-input" type="checkbox" value="1" name="adjust_privileges" id="adjustPrivilegesCheckbox">
<label class="form-check-label" for="adjustPrivilegesCheckbox">
{% trans 'Adjust privileges' %}
{{ show_docu('faq', 'faq6-39') }}
</label>
</fieldset>
</div>
</form>

View File

@ -1,23 +1,24 @@
<form action="{{ url('/database/structure/drop-table') }}" method="post">
{{ get_hidden_inputs(url_params) }}
<div class="container">
<form action="{{ url('/database/structure/drop-table') }}" method="post" class="card">
{{ get_hidden_inputs(url_params) }}
<input type="hidden" name="fk_checks" value="0">
<fieldset class="pma-fieldset confirmation">
<legend>
{% trans 'Do you really want to execute the following query?' %}
</legend>
<div class="card-header">{% trans 'Do you really want to execute the following query?' %}</div>
<code>{{ full_query|raw }}</code>
</fieldset>
<div class="card-body">
<div class="card mb-3">
<div class="card-body"><code>{{ full_query|raw }}</code></div>
</div>
<fieldset class="pma-fieldset tblFooters">
<div id="foreignkeychk" class="float-start">
<input type="hidden" name="fk_checks" value="0">
<input type="checkbox" name="fk_checks" id="fk_checks" value="1"{{ is_foreign_key_check ? ' checked' }}>
<label for="fk_checks">{% trans 'Enable foreign key checks' %}</label>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="fk_checks" id="checkForeignKeyCheckbox" value="1"{{ is_foreign_key_check ? ' checked' }}>
<label class="form-check-label" for="checkForeignKeyCheckbox">{% trans 'Enable foreign key checks' %}</label>
</div>
</div>
<div class="float-end">
<input id="buttonYes" class="btn btn-secondary" type="submit" name="mult_btn" value="{% trans 'Yes' %}">
<div class="card-footer">
<input id="buttonYes" class="btn btn-danger" type="submit" name="mult_btn" value="{% trans 'Yes' %}">
<input id="buttonNo" class="btn btn-secondary" type="submit" name="mult_btn" value="{% trans 'No' %}">
</div>
</fieldset>
</form>
</form>
</div>

View File

@ -1,23 +1,24 @@
<form action="{{ url('/database/structure/empty-table') }}" class="disableAjax" method="post">
{{ get_hidden_inputs(url_params) }}
<div class="container">
<form action="{{ url('/database/structure/empty-table') }}" class="card disableAjax" method="post">
{{ get_hidden_inputs(url_params) }}
<input type="hidden" name="fk_checks" value="0">
<fieldset class="pma-fieldset confirmation">
<legend>
{% trans 'Do you really want to execute the following query?' %}
</legend>
<div class="card-header">{% trans 'Do you really want to execute the following query?' %}</div>
<code>{{ full_query|raw }}</code>
</fieldset>
<div class="card-body">
<div class="card mb-3">
<div class="card-body"><code>{{ full_query|raw }}</code></div>
</div>
<fieldset class="pma-fieldset tblFooters">
<div id="foreignkeychk" class="float-start">
<input type="hidden" name="fk_checks" value="0">
<input type="checkbox" name="fk_checks" id="fk_checks" value="1"{{ is_foreign_key_check ? ' checked' }}>
<label for="fk_checks">{% trans 'Enable foreign key checks' %}</label>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="fk_checks" id="checkForeignKeyCheckbox" value="1"{{ is_foreign_key_check ? ' checked' }}>
<label class="form-check-label" for="checkForeignKeyCheckbox">{% trans 'Enable foreign key checks' %}</label>
</div>
</div>
<div class="float-end">
<input id="buttonYes" class="btn btn-secondary" type="submit" name="mult_btn" value="{% trans 'Yes' %}">
<div class="card-footer">
<input id="buttonYes" class="btn btn-danger" type="submit" name="mult_btn" value="{% trans 'Yes' %}">
<input id="buttonNo" class="btn btn-secondary" type="submit" name="mult_btn" value="{% trans 'No' %}">
</div>
</fieldset>
</form>
</form>
</div>

View File

@ -1,47 +1,51 @@
<div class="show_create_results">
<div class="container">
<h2>{% trans 'Showing create queries' %}</h2>
{% if tables.tables is not empty %}
<fieldset class="pma-fieldset">
<legend>{% trans 'Tables' %}</legend>
<table class="table table-striped show_create">
<thead>
<tr>
<th>{% trans 'Table' %}</th>
<th>{% trans 'Create table' %}</th>
</tr>
</thead>
<tbody>
{% for table in tables.tables %}
<div class="card mb-3">
<div class="card-header">{% trans 'Tables' %}</div>
<div class="card-body">
<table class="table">
<thead>
<tr>
<td><strong>{{ table.name|raw }}</strong></td>
<td>{{ table.show_create|raw }}</td>
<th>{% trans 'Table' %}</th>
<th>{% trans 'Create table' %}</th>
</tr>
{% endfor %}
</tbody>
</table>
</fieldset>
</thead>
<tbody>
{% for table in tables.tables %}
<tr>
<td><strong>{{ table.name|raw }}</strong></td>
<td>{{ table.show_create|raw }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% if tables.views is not empty %}
<fieldset class="pma-fieldset">
<legend>{% trans 'Views' %}</legend>
<table class="table table-striped show_create">
<thead>
<tr>
<th>{% trans 'View' %}</th>
<th>{% trans 'Create view' %}</th>
</tr>
</thead>
<tbody>
{% for view in tables.views %}
<div class="card">
<div class="card-header">{% trans 'Views' %}</div>
<div class="card-body">
<table class="table">
<thead>
<tr>
<td><strong>{{ view.name }}</strong></td>
<td>{{ view.show_create|raw }}</td>
<th>{% trans 'View' %}</th>
<th>{% trans 'Create view' %}</th>
</tr>
{% endfor %}
</tbody>
</table>
</fieldset>
</thead>
<tbody>
{% for view in tables.views %}
<tr>
<td><strong>{{ view.name }}</strong></td>
<td>{{ view.show_create|raw }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
</div>