From 326c0781d5ab8e1214f7bc6582b3ff0bf25d87cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Fri, 6 Oct 2017 12:03:20 -0300 Subject: [PATCH] Port table/search/options_zoom to Twig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- templates/table/search/options_zoom.phtml | 48 --------------------- templates/table/search/options_zoom.twig | 43 ++++++++++++++++++ templates/table/search/selection_form.phtml | 7 ++- 3 files changed, 48 insertions(+), 50 deletions(-) delete mode 100644 templates/table/search/options_zoom.phtml create mode 100644 templates/table/search/options_zoom.twig diff --git a/templates/table/search/options_zoom.phtml b/templates/table/search/options_zoom.phtml deleted file mode 100644 index d288db040d..0000000000 --- a/templates/table/search/options_zoom.phtml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - -
- - - -
- - - -
diff --git a/templates/table/search/options_zoom.twig b/templates/table/search/options_zoom.twig new file mode 100644 index 0000000000..5888ef7a4d --- /dev/null +++ b/templates/table/search/options_zoom.twig @@ -0,0 +1,43 @@ + + {# Select options for data label #} + + + + + {# Inputbox for changing default maximum rows to plot #} + + + + +
+ + + +
+ + + +
diff --git a/templates/table/search/selection_form.phtml b/templates/table/search/selection_form.phtml index f6c24082c9..fed4060d75 100644 --- a/templates/table/search/selection_form.phtml +++ b/templates/table/search/selection_form.phtml @@ -42,8 +42,11 @@ switch ($searchType) { ?> render(array( - 'dataLabel' => $dataLabel, - 'columnNames' => $columnNames + 'data_label' => $dataLabel, + 'column_names' => $columnNames, + 'max_plot_limit' => ((! empty($_POST['maxPlotLimit'])) + ? intval($_POST['maxPlotLimit']) + : intval($GLOBALS['cfg']['maxRowPlotLimit'])), )) ?>