From 8a7308c3f4b8e07f0948762ad19f4beda435626c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Thu, 20 May 2021 20:54:27 -0300 Subject: Remove some .pma-fieldset CSS classes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- libraries/classes/BrowseForeigners.php | 18 +++++++++--------- templates/create_tracking_version.twig | 15 ++++++++------- templates/database/central_columns/edit.twig | 15 +++++++++------ templates/database/central_columns/main.twig | 6 +++--- test/classes/BrowseForeignersTest.php | 28 +++++----------------------- test/classes/TrackingTest.php | 5 ++++- 6 files changed, 38 insertions(+), 49 deletions(-) diff --git a/libraries/classes/BrowseForeigners.php b/libraries/classes/BrowseForeigners.php index 7f1989e8ba..826539e10f 100644 --- a/libraries/classes/BrowseForeigners.php +++ b/libraries/classes/BrowseForeigners.php @@ -179,7 +179,7 @@ class BrowseForeigners $output = '
' + . '" method="post">
' . Url::getHiddenInputs($db, $table) . '' @@ -194,17 +194,17 @@ class BrowseForeigners $filterValue = (isset($_POST['foreign_filter']) ? htmlspecialchars($_POST['foreign_filter']) : ''); - $output .= '' - . '' - . '' . __('Search:') . '' + . '
' + . 'value="' . $filterValue . '" data-old="' . $filterValue . '">' + . '
' . '' - . '' - . '' . $gotoPage . '' - . '' . $foreignShowAll . '' + . '
' + . '
' . $gotoPage . '
' + . '
' . $foreignShowAll . '
' . '
' . ''; diff --git a/templates/create_tracking_version.twig b/templates/create_tracking_version.twig index ee0dcb3ba4..14a6e656db 100644 --- a/templates/create_tracking_version.twig +++ b/templates/create_tracking_version.twig @@ -1,12 +1,11 @@ -
+
{{ get_hidden_inputs(db) }} {% for selected_table in selected %} {% endfor %} -
- +
{% if selected|length == 1 %} {{ 'Create version %1$s of %2$s'|trans|format( last_version + 1, @@ -15,7 +14,9 @@ {% else %} {{ 'Create version %1$s'|trans|format(last_version + 1) }} {% endif %} - +
+ +

{% trans 'Track these data definition statements:' %}

@@ -69,11 +70,11 @@ TRUNCATE
-
+
-
+
+
diff --git a/templates/database/central_columns/edit.twig b/templates/database/central_columns/edit.twig index 9c7299759c..5869f32556 100644 --- a/templates/database/central_columns/edit.twig +++ b/templates/database/central_columns/edit.twig @@ -1,6 +1,8 @@
- - +
+
{% trans 'Structure' %}
+
+
{% trans 'Structure' %}
@@ -15,8 +17,9 @@ {{ rows|raw }}
{% trans 'Name' %}
- -
- -
+ + +
diff --git a/templates/database/central_columns/main.twig b/templates/database/central_columns/main.twig index fb195695e5..e42956b68b 100644 --- a/templates/database/central_columns/main.twig +++ b/templates/database/central_columns/main.twig @@ -127,9 +127,9 @@ {% if total_rows <= 0 %} -
- {% trans 'The central list of columns for the current database is empty' %} -
+ {% else %} diff --git a/test/classes/BrowseForeignersTest.php b/test/classes/BrowseForeignersTest.php index aba2cdbbed..d951741254 100644 --- a/test/classes/BrowseForeignersTest.php +++ b/test/classes/BrowseForeignersTest.php @@ -197,10 +197,7 @@ class BrowseForeignersTest extends AbstractTestCase $result ); - $this->assertStringContainsString( - '
', - $result - ); + $this->assertStringContainsString('
', $result); $this->assertStringContainsString( '', @@ -217,21 +214,11 @@ class BrowseForeignersTest extends AbstractTestCase $result ); + $this->assertStringContainsString('
', $result); + $this->assertStringContainsString('
', $result diff --git a/test/classes/TrackingTest.php b/test/classes/TrackingTest.php index bb6d705286..e9a969460d 100644 --- a/test/classes/TrackingTest.php +++ b/test/classes/TrackingTest.php @@ -131,7 +131,10 @@ class TrackingTest extends AbstractTestCase $this->assertStringContainsString('PMA_db.PMA_table', $html); $this->assertStringContainsString('', $html); $this->assertStringContainsString(__('Delete version'), $html); - $this->assertStringContainsString('
', $html); + $this->assertStringContainsString('
', $html); + $this->assertStringContainsString('
', $html); + $this->assertStringContainsString('
', $html); + $this->assertStringContainsString('
date_created