From 169b3c2659b827d726299d5d5e01c57b3d486e48 Mon Sep 17 00:00:00 2001 From: mespeche Date: Thu, 19 Sep 2013 17:30:57 +0200 Subject: [PATCH] Setting profile edition route and view --- core/lib/Thelia/Config/Resources/routing/admin.xml | 6 ++++++ core/lib/Thelia/Controller/Admin/AdminController.php | 5 +++++ templates/admin/default/admin-layout.tpl | 2 +- templates/admin/default/profile-edit.html | 0 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 templates/admin/default/profile-edit.html diff --git a/core/lib/Thelia/Config/Resources/routing/admin.xml b/core/lib/Thelia/Config/Resources/routing/admin.xml index e09d24a90..693224fa7 100755 --- a/core/lib/Thelia/Config/Resources/routing/admin.xml +++ b/core/lib/Thelia/Config/Resources/routing/admin.xml @@ -24,6 +24,12 @@ Thelia\Controller\Admin\SessionController::checkLoginAction + + + Thelia\Controller\Admin\AdminController::updateAction + + + diff --git a/core/lib/Thelia/Controller/Admin/AdminController.php b/core/lib/Thelia/Controller/Admin/AdminController.php index 2c252258d..2d3d80df1 100755 --- a/core/lib/Thelia/Controller/Admin/AdminController.php +++ b/core/lib/Thelia/Controller/Admin/AdminController.php @@ -33,4 +33,9 @@ class AdminController extends BaseAdminController { return $this->render("home"); } + + public function updateAction() + { + return $this->render("profile-edit"); + } } diff --git a/templates/admin/default/admin-layout.tpl b/templates/admin/default/admin-layout.tpl index b80d5d13c..553466def 100644 --- a/templates/admin/default/admin-layout.tpl +++ b/templates/admin/default/admin-layout.tpl @@ -62,7 +62,7 @@ diff --git a/templates/admin/default/profile-edit.html b/templates/admin/default/profile-edit.html new file mode 100644 index 000000000..e69de29bb