From 8574a4f3cfc9c2976cea10bda12d8de49967f84c Mon Sep 17 00:00:00 2001 From: Astrid Date: Mon, 12 Feb 2018 23:57:58 +0100 Subject: [PATCH] improvedtheBatchview (#375) --- .../views/weblinks/tmpl/default.php | 17 +++++- .../views/weblinks/tmpl/default_batch.php | 56 ------------------- .../weblinks/tmpl/default_batch_body.php | 40 +++++++++++++ .../weblinks/tmpl/default_batch_footer.php | 17 ++++++ 4 files changed, 71 insertions(+), 59 deletions(-) delete mode 100644 src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch.php create mode 100644 src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch_body.php create mode 100644 src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch_footer.php diff --git a/src/administrator/components/com_weblinks/views/weblinks/tmpl/default.php b/src/administrator/components/com_weblinks/views/weblinks/tmpl/default.php index 69b0840..65c9325 100644 --- a/src/administrator/components/com_weblinks/views/weblinks/tmpl/default.php +++ b/src/administrator/components/com_weblinks/views/weblinks/tmpl/default.php @@ -164,11 +164,22 @@ if ($saveOrder) + + authorise('core.create', 'com_content') + && $user->authorise('core.edit', 'com_content') + && $user->authorise('core.edit.state', 'com_content')) : ?> + JText::_('COM_WEBLINKS_BATCH_OPTIONS'), + 'footer' => $this->loadTemplate('batch_footer'), + ), + $this->loadTemplate('batch_body') + ); ?> + - - loadTemplate('batch'); ?> - diff --git a/src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch.php b/src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch.php deleted file mode 100644 index 3807e82..0000000 --- a/src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch.php +++ /dev/null @@ -1,56 +0,0 @@ -state->get('filter.published'); -?> - diff --git a/src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch_body.php b/src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch_body.php new file mode 100644 index 0000000..e6ff658 --- /dev/null +++ b/src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch_body.php @@ -0,0 +1,40 @@ +state->get('filter.published'); +?> + +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ = 0) : ?> +
+
+ +
+
+ +
+
+ +
+
+
+
diff --git a/src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch_footer.php b/src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch_footer.php new file mode 100644 index 0000000..fb0c758 --- /dev/null +++ b/src/administrator/components/com_weblinks/views/weblinks/tmpl/default_batch_footer.php @@ -0,0 +1,17 @@ + + + + + \ No newline at end of file