From 02da205a52d4c09fa2c6f58905ef0d101333ad9a Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Tue, 4 Feb 2014 02:15:58 +0100 Subject: [PATCH] Added the flag bar to the "Modules" tab of products, categories, folders and contents. --- .../default/assets/less/thelia/thelia.less | 4 ---- templates/backOffice/default/category-edit.html | 12 +++++++++++- templates/backOffice/default/content-edit.html | 12 +++++++++++- templates/backOffice/default/folder-edit.html | 11 ++++++++++- .../default/includes/inner-form-toolbar.html | 7 ++++++- templates/backOffice/default/includes/seo-tab.html | 1 + templates/backOffice/default/product-edit.html | 12 +++++++++++- 7 files changed, 50 insertions(+), 9 deletions(-) diff --git a/templates/backOffice/default/assets/less/thelia/thelia.less b/templates/backOffice/default/assets/less/thelia/thelia.less index 849d6caf3..ce9da65a9 100644 --- a/templates/backOffice/default/assets/less/thelia/thelia.less +++ b/templates/backOffice/default/assets/less/thelia/thelia.less @@ -222,10 +222,6 @@ } } -.module-tab { - margin-top: 1.5em; -} - .tab-content { // Center loading indicator .loading { diff --git a/templates/backOffice/default/category-edit.html b/templates/backOffice/default/category-edit.html index 5286e3ac9..8f3fc4e40 100644 --- a/templates/backOffice/default/category-edit.html +++ b/templates/backOffice/default/category-edit.html @@ -260,7 +260,17 @@ {include file='includes/document-upload-form.html' documentType='category' parentId=$ID} -
+
+
+ {include + file = "includes/inner-form-toolbar.html" + hide_submit_buttons = true + page_url = {$pageUrl} + close_url = {$closeUrl} + current_tab = "modules" + } +
+ {module_include location='category-edit' countvar='module_count'} {if $countvar == 0} diff --git a/templates/backOffice/default/content-edit.html b/templates/backOffice/default/content-edit.html index 3d8f778fe..49c8f6b66 100644 --- a/templates/backOffice/default/content-edit.html +++ b/templates/backOffice/default/content-edit.html @@ -155,7 +155,17 @@ {include file='includes/document-upload-form.html' documentType='content' parentId=$content_id}
-
+
+
+ {include + file = "includes/inner-form-toolbar.html" + hide_submit_buttons = true + page_url = {$pageUrl} + close_url = {$closeUrl} + current_tab = "modules" + } +
+ {module_include location='content-edit' countvar='module_count'} {if $countvar == 0} diff --git a/templates/backOffice/default/folder-edit.html b/templates/backOffice/default/folder-edit.html index 22523bc7a..bff41f094 100644 --- a/templates/backOffice/default/folder-edit.html +++ b/templates/backOffice/default/folder-edit.html @@ -141,7 +141,16 @@ {include file='includes/document-upload-form.html' documentType='folder' parentId=$ID}
-
+
+
+ {include + file = "includes/inner-form-toolbar.html" + hide_submit_buttons = true + page_url = {$pageUrl} + close_url = {$closeUrl} + current_tab = "modules" + } +
{module_include location='folder-edit' countvar='module_count'} diff --git a/templates/backOffice/default/includes/inner-form-toolbar.html b/templates/backOffice/default/includes/inner-form-toolbar.html index 6e7835e73..92bee1af8 100644 --- a/templates/backOffice/default/includes/inner-form-toolbar.html +++ b/templates/backOffice/default/includes/inner-form-toolbar.html @@ -16,7 +16,12 @@ Parameters:
-
+
+
+ {include + file = "includes/inner-form-toolbar.html" + hide_submit_buttons = true + page_url = {$pageUrl} + close_url = {$closeUrl} + current_tab = "modules" + } +
+ {module_include location='product-edit' countvar='module_count'} {if $countvar == 0}