From d38c48995ce795098861a7f416e1d9e1ee57ed35 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Thu, 24 Apr 2014 14:31:27 +0200 Subject: [PATCH] start creating tools page --- .../Controller/Admin/ExportController.php | 45 ++++ .../Controller/Admin/ToolsController.php | 45 ++++ templates/backOffice/default/tools.html | 201 ++++++++++++++++++ 3 files changed, 291 insertions(+) create mode 100644 core/lib/Thelia/Controller/Admin/ExportController.php create mode 100644 core/lib/Thelia/Controller/Admin/ToolsController.php create mode 100644 templates/backOffice/default/tools.html diff --git a/core/lib/Thelia/Controller/Admin/ExportController.php b/core/lib/Thelia/Controller/Admin/ExportController.php new file mode 100644 index 000000000..f0f89f043 --- /dev/null +++ b/core/lib/Thelia/Controller/Admin/ExportController.php @@ -0,0 +1,45 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Controller\Admin; + +use Thelia\Core\Security\AccessManager; +use Thelia\Core\Security\Resource\AdminResources; + + +/** + * Class ExportController + * @package Thelia\Controller\Admin + * @author Manuel Raynaud + */ +class ExportController extends BaseAdminController +{ + + public function customerNewsletterAction() + { + if (null !== $response = $this->checkAuth([AdminResources::EXPORT], [], [AccessManager::VIEW])) { + return $response; + } + + } +} \ No newline at end of file diff --git a/core/lib/Thelia/Controller/Admin/ToolsController.php b/core/lib/Thelia/Controller/Admin/ToolsController.php new file mode 100644 index 000000000..23d95c75a --- /dev/null +++ b/core/lib/Thelia/Controller/Admin/ToolsController.php @@ -0,0 +1,45 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Controller\Admin; + +use Thelia\Core\Security\AccessManager; +use Thelia\Core\Security\Resource\AdminResources; + + +/** + * Class ToolsController + * @package Thelia\Controller\Admin + * @author Manuel Raynaud + */ +class ToolsController extends BaseAdminController +{ + public function indexAction() + { + if (null !== $response = $this->checkAuth([AdminResources::TOOLS], [], [AccessManager::VIEW])) { + return $response; + } + + return $this->render('tools'); + } +} \ No newline at end of file diff --git a/templates/backOffice/default/tools.html b/templates/backOffice/default/tools.html new file mode 100644 index 000000000..e4d51dda8 --- /dev/null +++ b/templates/backOffice/default/tools.html @@ -0,0 +1,201 @@ +{extends file="admin-layout.tpl"} + +{block name="page-title"}{intl l='Configuration'}{/block} + +{block name="check-resource"}admin.configuration{/block} +{block name="check-access"}view{/block} + +{block name="main-content"} +
+ +
+ + {module_include location='configuration_top'} + +

{intl l="Thelia configuration"}

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + {module_include location='configuration_bottom'} +
+
+
+{/block} + +{block name="javascript-last-call"} + {module_include location='configuration-js'} +{/block} \ No newline at end of file