From c15431a468089ebcf95bb2e4005d2dd60775bef9 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Tue, 22 Oct 2013 16:53:37 +0200 Subject: [PATCH] create languages pages --- .../Thelia/Config/Resources/routing/admin.xml | 6 +++ .../Controller/Admin/LangController.php | 43 +++++++++++++++++ templates/admin/default/lang.html | 46 +++++++++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 core/lib/Thelia/Controller/Admin/LangController.php create mode 100644 templates/admin/default/lang.html diff --git a/core/lib/Thelia/Config/Resources/routing/admin.xml b/core/lib/Thelia/Config/Resources/routing/admin.xml index 7b377b48e..654478642 100755 --- a/core/lib/Thelia/Config/Resources/routing/admin.xml +++ b/core/lib/Thelia/Config/Resources/routing/admin.xml @@ -920,6 +920,12 @@ + + + + Thelia\Controller\Admin\LangController::defaultAction + + diff --git a/core/lib/Thelia/Controller/Admin/LangController.php b/core/lib/Thelia/Controller/Admin/LangController.php new file mode 100644 index 000000000..637cea161 --- /dev/null +++ b/core/lib/Thelia/Controller/Admin/LangController.php @@ -0,0 +1,43 @@ +. */ +/* */ +/*************************************************************************************/ + +namespace Thelia\Controller\Admin; +use Thelia\Core\Security\AccessManager; +use Thelia\Core\Security\Resource\AdminResources; + + +/** + * Class LangController + * @package Thelia\Controller\Admin + * @author Manuel Raynaud + */ +class LangController extends BaseAdminController +{ + + public function defaultAction() + { + if (null !== $response = $this->checkAuth(AdminResources::LANGUAGE, AccessManager::VIEW)) return $response; + + return $this->render('lang'); + } +} \ No newline at end of file diff --git a/templates/admin/default/lang.html b/templates/admin/default/lang.html new file mode 100644 index 000000000..9711c21f1 --- /dev/null +++ b/templates/admin/default/lang.html @@ -0,0 +1,46 @@ +{extends file="admin-layout.tpl"} + +{block name="page-title"}{intl l='Languages an URLs'}{/block} + +{block name="check-resource"}admin.configuration.languages{/block} +{block name="check-access"}view{/block} + +{block name="main-content"} +
+ +
+ + +
+
+
+ + + + + + + + + + {module_include location='modules_table_header'} + + + + + +
+ {intl l="Languages management"} +
{intl l="Title"}{intl l="code ISO 639"}{intl l="locale"}{intl l="locale"}{intl l="Actions"}
+
+
+
+
+
+ +{/block} \ No newline at end of file