diff --git a/core/lib/Thelia/Config/Resources/config.xml b/core/lib/Thelia/Config/Resources/config.xml
index 74e1f4629..e5493cdfd 100755
--- a/core/lib/Thelia/Config/Resources/config.xml
+++ b/core/lib/Thelia/Config/Resources/config.xml
@@ -66,6 +66,10 @@
+
+
+
+
diff --git a/core/lib/Thelia/Config/Resources/routing/admin.xml b/core/lib/Thelia/Config/Resources/routing/admin.xml
index 8eaeb2547..7cbb04b08 100755
--- a/core/lib/Thelia/Config/Resources/routing/admin.xml
+++ b/core/lib/Thelia/Config/Resources/routing/admin.xml
@@ -79,12 +79,8 @@
-
-
-
-
-
+
Thelia\Controller\Admin\CouponController::browseAction
@@ -105,10 +101,6 @@
-
-
-
-
@@ -197,12 +189,36 @@
-
+
Thelia\Controller\Admin\AttributeController::defaultAction
-
- Thelia\Controller\Admin\AttributeController::updateAction
+
+ Thelia\Controller\Admin\AttributeController::createAction
+
+
+
+ Thelia\Controller\Admin\AttributeController::createValueAction
+
+
+
+ Thelia\Controller\Admin\AttributeController::changeAction
+
+
+
+ Thelia\Controller\Admin\AttributeController::saveChangeAction
+
+
+
+ Thelia\Controller\Admin\AttributeController::deleteAction
+
+
+
+ Thelia\Controller\Admin\AttributeController::deleteValueAction
+
+
+
+ Thelia\Controller\Admin\AttributeController::updatePositionAction
diff --git a/core/lib/Thelia/Core/Event/TheliaEvents.php b/core/lib/Thelia/Core/Event/TheliaEvents.php
index c19d3a400..fa6b3e0c3 100755
--- a/core/lib/Thelia/Core/Event/TheliaEvents.php
+++ b/core/lib/Thelia/Core/Event/TheliaEvents.php
@@ -358,4 +358,35 @@ final class TheliaEvents
const BEFORE_DELETECURRENCY = "action.before_deleteCurrency";
const AFTER_DELETECURRENCY = "action.after_deleteCurrency";
+ // -- Attributes management ---------------------------------------------
+
+ const ATTRIBUTE_CREATE = "action.createAttribute";
+ const ATTRIBUTE_UPDATE = "action.updateAttribute";
+ const ATTRIBUTE_DELETE = "action.deleteAttribute";
+ const ATTRIBUTE_UPDATE_POSITION = "action.updateAttributePosition";
+
+ const BEFORE_CREATEATTRIBUTE = "action.before_createAttribute";
+ const AFTER_CREATEATTRIBUTE = "action.after_createAttribute";
+
+ const BEFORE_UPDATEATTRIBUTE = "action.before_updateAttribute";
+ const AFTER_UPDATEATTRIBUTE = "action.after_updateAttribute";
+
+ const BEFORE_DELETEATTRIBUTE = "action.before_deleteAttribute";
+ const AFTER_DELETEATTRIBUTE = "action.after_deleteAttribute";
+
+ // -- Attributes values management ----------------------------------------
+
+ const ATTRIBUTE_VALUE_CREATE = "action.createAttributeValue";
+ const ATTRIBUTE_VALUE_UPDATE = "action.updateAttributeValue";
+ const ATTRIBUTE_VALUE_DELETE = "action.deleteAttributeValue";
+ const ATTRIBUTE_VALUE_UPDATE_POSITION = "action.updateAttributeValuePosition";
+
+ const BEFORE_CREATEATTRIBUTE_VALUE = "action.before_createAttributeValue";
+ const AFTER_CREATEATTRIBUTE_VALUE = "action.after_createAttributeValue";
+
+ const BEFORE_UPDATEATTRIBUTE_VALUE = "action.before_updateAttributeValue";
+ const AFTER_UPDATEATTRIBUTE_VALUE = "action.after_updateAttributeValue";
+
+ const BEFORE_DELETEATTRIBUTE_VALUE = "action.before_deleteAttributeValue";
+ const AFTER_DELETEATTRIBUTE_VALUE = "action.after_deleteAttributeValue";
}
diff --git a/templates/admin/default/admin-layout.tpl b/templates/admin/default/admin-layout.tpl
index 942557600..334f95d44 100644
--- a/templates/admin/default/admin-layout.tpl
+++ b/templates/admin/default/admin-layout.tpl
@@ -144,9 +144,9 @@
{/loop}
- {loop name="menu-auth-discount" type="auth" roles="ADMIN" permissions="admin.discount.view"}
-
{/loop}
@@ -222,10 +222,10 @@
{block name="before-javascript-include"}{/block}
-
+{*
{debugbar_renderjs}
{debugbar_renderresult}
-
+*}
{block name="after-javascript-include"}{/block}
{block name="javascript-initialization"}{/block}