From 7f10926b03b77334a09ab1959c58d4d90ed73169 Mon Sep 17 00:00:00 2001 From: mespeche Date: Fri, 6 Sep 2013 11:07:44 +0200 Subject: [PATCH 1/9] Working : - Add bootstrap switch - Add css class to img - Refactor modal add - Label information in CategoryCreationForm file --- core/lib/Thelia/Form/CategoryCreationForm.php | 4 + templates/admin/default/categories.html | 102 +++++++++--------- .../default/includes/add-category-dialog.html | 45 ++++---- 3 files changed, 77 insertions(+), 74 deletions(-) diff --git a/core/lib/Thelia/Form/CategoryCreationForm.php b/core/lib/Thelia/Form/CategoryCreationForm.php index 9935eec19..a125ad090 100755 --- a/core/lib/Thelia/Form/CategoryCreationForm.php +++ b/core/lib/Thelia/Form/CategoryCreationForm.php @@ -32,6 +32,10 @@ class CategoryCreationForm extends BaseForm ->add("title", "text", array( "constraints" => array( new NotBlank() + ), + "label" => "Category title *", + "label_attr" => array( + "for" => "title" ) )) ->add("parent", "integer", array( diff --git a/templates/admin/default/categories.html b/templates/admin/default/categories.html index 49db025ae..1de7db1c2 100755 --- a/templates/admin/default/categories.html +++ b/templates/admin/default/categories.html @@ -261,7 +261,7 @@ {elseloop rel="product_list"} -
{intl l="This category doesn't have any products. To add a new product, click the + button above."}
+
{intl l="This category doesn't have any products. To add a new product, click the + button above."}
{/elseloop} @@ -288,68 +288,68 @@ {/javascripts} - + }); + {/block} \ No newline at end of file diff --git a/templates/admin/default/includes/add-category-dialog.html b/templates/admin/default/includes/add-category-dialog.html index 0e62994f7..631d0c06e 100755 --- a/templates/admin/default/includes/add-category-dialog.html +++ b/templates/admin/default/includes/add-category-dialog.html @@ -30,36 +30,35 @@ From 86569b01a5a0ebdab27a4ccfd2cd026410a965c2 Mon Sep 17 00:00:00 2001 From: mespeche Date: Fri, 6 Sep 2013 11:13:47 +0200 Subject: [PATCH 2/9] Working : - Add switch to second table --- templates/admin/default/categories.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/admin/default/categories.html b/templates/admin/default/categories.html index 1de7db1c2..a3097f722 100755 --- a/templates/admin/default/categories.html +++ b/templates/admin/default/categories.html @@ -235,7 +235,9 @@ {module_include location='product_list_row'} - +
+ +
From a82251b4b68e084f81cb3f0a15336daa152ffba7 Mon Sep 17 00:00:00 2001 From: mespeche Date: Fri, 6 Sep 2013 11:15:39 +0200 Subject: [PATCH 3/9] Working : - Refactor modal --- .../includes/delete-category-dialog.html | 78 ++++++++++--------- 1 file changed, 42 insertions(+), 36 deletions(-) diff --git a/templates/admin/default/includes/delete-category-dialog.html b/templates/admin/default/includes/delete-category-dialog.html index 91cc8db66..38e93a340 100755 --- a/templates/admin/default/includes/delete-category-dialog.html +++ b/templates/admin/default/includes/delete-category-dialog.html @@ -1,42 +1,48 @@ {* Adding a new Category *} -