diff --git a/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl index 0304773f7..0930d0edc 100644 --- a/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl @@ -25,27 +25,46 @@
{block name="leadin"}{/block}
{if $module_confirmation} -
- {l s='Your .CSV file has been sucessfully imported into your shop.'} -
+
+ {l s='Your .CSV file has been sucessfully imported into your shop.'} +
{/if}
-
-
 
-
- -
- -

- {l s='You can also upload your file via FTP to the following directory:'} {$path_import}. -

-
- -
- -

- {l s='Only UTF-8 and ISO-8859-1 encoding are allowed'} -

+
+
{l s='Only UTF-8 and ISO-8859-1 encoding are allowed'}
+ +
+
+ +
+
+
+ +
+ + + + + +
+
+
+
+
+

+ {l s='You can also upload your file via FTP to the following directory:'} {$path_import}. +

+
+
+
+
+
+
+ +
+
@@ -328,5 +347,17 @@ showTitle: false }); }; + + $('#file-selectbutton').click(function(e){ + $('#file').trigger('click'); + }); + $('#file-name').click(function(e){ + $('#file').trigger('click'); + }); + $('#file').change(function(e){ + var val = $(this).val(); + var file = val.split(/[\\/]/); + $('#file-name').val(file[file.length-1]); + }); }); diff --git a/admin-dev/themes/default/template/controllers/modules/page.tpl b/admin-dev/themes/default/template/controllers/modules/page.tpl index cd513dc9d..0d1d480cb 100644 --- a/admin-dev/themes/default/template/controllers/modules/page.tpl +++ b/admin-dev/themes/default/template/controllers/modules/page.tpl @@ -37,8 +37,21 @@ {l s='Module file'} -
- +
+
+
+ +
+ + + + + +
+
+
@@ -97,4 +110,20 @@
-
\ No newline at end of file + + + \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl b/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl index c1d6520a2..df1bdae7e 100644 --- a/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl +++ b/admin-dev/themes/default/template/controllers/modules/tab_module_line.tpl @@ -32,7 +32,7 @@
- {$module->name} + {$module->displayName|truncate:40:'…'} {$module->version} {if isset($module->id) && $module->id gt 0 } {if $module->active} diff --git a/admin-dev/themes/default/template/helpers/form/form_group.tpl b/admin-dev/themes/default/template/helpers/form/form_group.tpl index c6b46b156..bb6d1ca56 100644 --- a/admin-dev/themes/default/template/helpers/form/form_group.tpl +++ b/admin-dev/themes/default/template/helpers/form/form_group.tpl @@ -24,27 +24,41 @@ *} {if count($groups) && isset($groups)} - - - - - - - - {foreach $groups as $key => $group} - - - - - - {/foreach} - -
- - {l s='ID'}{l s='Group name'}
- {assign var=id_checkbox value=groupBox|cat:'_'|cat:$group['id_group']} - - {$group['id_group']}
+
+
+ + + + + + + + {foreach $groups as $key => $group} + + + + + + {/foreach} + +
+ + + + {l s='ID'} + + {l s='Group name'} + +
+ {assign var=id_checkbox value=groupBox|cat:'_'|cat:$group['id_group']} + + {$group['id_group']} + +
+
+
{else} -

{l s='No group created'}

+

+ {l s='No group created'} +

{/if} \ No newline at end of file diff --git a/admin-dev/themes/default/template/helpers/list/list_footer.tpl b/admin-dev/themes/default/template/helpers/list/list_footer.tpl index b1b1515db..e6cb8841f 100644 --- a/admin-dev/themes/default/template/helpers/list/list_footer.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_footer.tpl @@ -131,6 +131,18 @@ {/if}
+{foreach from=$toolbar_btn item=btn key=k} + {if $k == 'back'} + {assign 'back_button' $btn} + {/if} +{/foreach} +{if isset($back_button)} + +{/if} {if !$simple_header} @@ -140,6 +152,7 @@ {/if} + {hook h='displayAdminListAfter'} {if isset($name_controller)} {capture name=hookName assign=hookName}display{$name_controller|ucfirst}ListAfter{/capture} diff --git a/admin-dev/themes/default/template/helpers/list/list_header.tpl b/admin-dev/themes/default/template/helpers/list/list_header.tpl index 05f24d9a9..4323bc617 100644 --- a/admin-dev/themes/default/template/helpers/list/list_header.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_header.tpl @@ -72,6 +72,8 @@ {hook h=$hookName} {/if} + + {if !$simple_header}
{block name="override_form_extra"}{/block} @@ -81,7 +83,7 @@ {if isset($toolbar_btn) && count($toolbar_btn) >0} {foreach from=$toolbar_btn item=btn key=k} - {if $k != 'modules-list'} + {if $k != 'modules-list' && $k != 'back'} @@ -301,7 +303,7 @@ {*Search must be before reset for default form submit*} - {if $filters_has_value} diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 4b696d022..0ce276087 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -407,7 +407,7 @@ class AdminControllerCore extends Controller public function addFiltersToBreadcrumbs() { - if (Tools::isSubmit('submitFilter')) + if (Tools::isSubmit('submitFilter') && is_array($this->fields_list)) { $filters = array(); foreach ($this->fields_list as $field => $t) diff --git a/classes/helper/HelperList.php b/classes/helper/HelperList.php index d95e94399..84023cbba 100644 --- a/classes/helper/HelperList.php +++ b/classes/helper/HelperList.php @@ -605,16 +605,16 @@ class HelperListCore extends Helper 'list_total' => $this->listTotal, 'token' => $this->token, 'table' => $this->table, - 'bulk_actions' => (count($this->_list) <= 1 && !$has_value) ? array() : $this->bulk_actions + 'bulk_actions' => (count($this->_list) <= 1 && !$has_value) ? array() : $this->bulk_actions, + 'show_toolbar' => $this->show_toolbar, + 'toolbar_scroll' => $this->toolbar_scroll, + 'toolbar_btn' => $this->toolbar_btn, )); $this->header_tpl->assign(array_merge($this->tpl_vars, array( 'title' => array_key_exists('title', $this->tpl_vars) ? $this->tpl_vars['title'] : $this->title, 'show_filters' => (count($this->_list) <= 1 && !$has_value) ? false : true, 'filters_has_value' => $has_value, - 'show_toolbar' => $this->show_toolbar, - 'toolbar_scroll' => $this->toolbar_scroll, - 'toolbar_btn' => $this->toolbar_btn, 'currentIndex' => $this->currentIndex, 'action' => $action, 'is_order_position' => $this->position_identifier && $this->orderBy == 'position', diff --git a/js/admin.js b/js/admin.js index 9513ddbce..0d3bb1009 100644 --- a/js/admin.js +++ b/js/admin.js @@ -871,7 +871,34 @@ $(document).ready(function() }); bindTabModuleListAction(); - + + //Check filters value on submit filter + $("[name='submitFilter']").click(function(event) { + var list_id = $(this).data('list-id'); + var empty_filters = true; + + $(document.body).find("input[name*='"+list_id+"Filter']").each(function() { + if ($(this).val() != '') + { + empty_filters = false; + return false; + } + }); + + $(document.body).find("select[name*='"+list_id+"Filter']").each(function() { + if ($(this).val() != '') + { + empty_filters = false; + return false; + } + }); + + if (empty_filters) + { + event.preventDefault(); + $('#'+list_id+'-empty-filters-alert').show(); + } + }); }); @@ -1077,5 +1104,4 @@ function sendBulkAction(form, action) $(form).attr('action', form_action.splice(form_action.lastIndexOf('&'), 0, '&' + action)); $(form).submit(); -} - +} \ No newline at end of file