From c5f1e5288cdfab4a2f970073791f48e7c75fc68e Mon Sep 17 00:00:00 2001 From: mespeche Date: Fri, 6 Sep 2013 16:32:27 +0200 Subject: [PATCH 1/2] Working : - Create product_attributes view for loop intergration --- .../admin/default/product_attributes.html | 142 ++++++++++++++++++ 1 file changed, 142 insertions(+) diff --git a/templates/admin/default/product_attributes.html b/templates/admin/default/product_attributes.html index e69de29bb..921674b03 100644 --- a/templates/admin/default/product_attributes.html +++ b/templates/admin/default/product_attributes.html @@ -0,0 +1,142 @@ +{extends file="admin-layout.tpl"} + +{block name="page-title"}{intl l='Thelia Product Attributes'}{/block} + +{block name="check-permissions"}admin.configuration.product_attributes.view{/block} + +{block name="main-content"} +
+ +
+ + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + +
+ {intl l='Thelia product attributes'} + + + + +
{intl l="Title"}{intl l="Position"}{intl l="Actions"}
Title here1 +
+ + + +
+
+
+
+
+
+ +
+
+ + +{* Adding a new message *} + + + + +{* Delete confirmation dialog *} + + +{/block} \ No newline at end of file From eebe1d4f58515ff76fbe7f82f3a474a6a58f72a2 Mon Sep 17 00:00:00 2001 From: mespeche Date: Fri, 6 Sep 2013 16:47:21 +0200 Subject: [PATCH 2/2] Working : - Rename file for best practices regard --- core/lib/Thelia/Controller/Admin/AttributeController.php | 2 +- .../{product_attributes.html => product-attributes.html} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename templates/admin/default/{product_attributes.html => product-attributes.html} (100%) diff --git a/core/lib/Thelia/Controller/Admin/AttributeController.php b/core/lib/Thelia/Controller/Admin/AttributeController.php index d2c1ea351..a0056cf25 100644 --- a/core/lib/Thelia/Controller/Admin/AttributeController.php +++ b/core/lib/Thelia/Controller/Admin/AttributeController.php @@ -51,7 +51,7 @@ class AttributeController extends BaseAdminController if (null !== $response = $this->checkAuth("admin.configuration.attributes.view")) return $response; - return $this->render('product_attributes'); + return $this->render('product-attributes'); } } \ No newline at end of file diff --git a/templates/admin/default/product_attributes.html b/templates/admin/default/product-attributes.html similarity index 100% rename from templates/admin/default/product_attributes.html rename to templates/admin/default/product-attributes.html