From 43bf9e5e78fb460b56ee4f38322fcbb29cdb30c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Tue, 17 Oct 2017 23:03:32 -0200 Subject: [PATCH] Port table/structure/partition_definition_form to Twig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- .../Controllers/Table/TableStructureController.php | 2 +- .../structure/partition_definition_form.phtml | 13 ------------- .../table/structure/partition_definition_form.twig | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 templates/table/structure/partition_definition_form.phtml create mode 100644 templates/table/structure/partition_definition_form.twig diff --git a/libraries/classes/Controllers/Table/TableStructureController.php b/libraries/classes/Controllers/Table/TableStructureController.php index 13a1ae6fa5..f6380266b7 100644 --- a/libraries/classes/Controllers/Table/TableStructureController.php +++ b/libraries/classes/Controllers/Table/TableStructureController.php @@ -537,7 +537,7 @@ class TableStructureController extends TableController array( 'db' => $this->db, 'table' => $this->table, - 'partitionDetails' => $partitionDetails + 'partition_details' => $partitionDetails, ) ) ); diff --git a/templates/table/structure/partition_definition_form.phtml b/templates/table/structure/partition_definition_form.phtml deleted file mode 100644 index 094e03ea20..0000000000 --- a/templates/table/structure/partition_definition_form.phtml +++ /dev/null @@ -1,13 +0,0 @@ -
- - - -
- - render(array('partition_details' => $partitionDetails)); ?> -
-
- -
-
diff --git a/templates/table/structure/partition_definition_form.twig b/templates/table/structure/partition_definition_form.twig new file mode 100644 index 0000000000..186a6c71f1 --- /dev/null +++ b/templates/table/structure/partition_definition_form.twig @@ -0,0 +1,14 @@ +
+ {{ Url_getHiddenInputs(db, table) }} + + +
+ {% trans 'Edit partitioning' %} + {% include 'columns_definitions/partitions.twig' with { + 'partition_details': partition_details + } only %} +
+
+ +
+