From 4919d6d81ae56034bf1b5174836440d6ab66459a Mon Sep 17 00:00:00 2001 From: sLorenzini Date: Fri, 12 Jul 2013 17:46:13 +0200 Subject: [PATCH] // update positions module tab --- .../modules_positions/list_modules.tpl | 243 +++++++++++------- .../admin/AdminModulesPositionsController.php | 1 + 2 files changed, 151 insertions(+), 93 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/modules_positions/list_modules.tpl b/admin-dev/themes/default/template/controllers/modules_positions/list_modules.tpl index 623e83dde..77b7c3763 100644 --- a/admin-dev/themes/default/template/controllers/modules_positions/list_modules.tpl +++ b/admin-dev/themes/default/template/controllers/modules_positions/list_modules.tpl @@ -30,103 +30,160 @@ {include file="toolbar.tpl" toolbar_btn=$toolbar_btn toolbar_scroll=$toolbar_scroll title=$title} -
{block name="leadin"}{/block}
+
{block name="leadin"}{/block}
-
-
- {l s='Show'} : - -

-   - -
+
+
+ + + + +

+ +

+
-
-
-
-

{l s='LiveEdit'}

-{if $live_edit} -

{l s='You have to select a shop to use LiveEdit'}

-{else} -

{l s='Click here to be redirected to the Front Office of your shop where you can move and delete modules directly.'}

- {l s='Run LiveEdit'} -{/if} -
-
-
-
+
+
+
+ + + + + {if !$can_move} + + {l s='If you want to order/move the following data, please select a shop from the shop list.'} + + {/if} -{if !$can_move} -
{l s='If you want to order/move the following data, please select a shop from the shop list.'}
-{/if} -{foreach $hooks as $hook} - - - - - - - - - - - {if $hook['module_count']} - {foreach $hook['modules'] as $position => $module} - {if isset($module['instance'])} - - - {if !$display_key} - - - - - {/if} - {/foreach} - {else} - - {/if} -
{if $hook['module_count'] && $can_move} - - {/if}{$hook['title']} - {$hook['module_count']} {if $hook['module_count'] > 1}{l s='Modules'}{else}{l s='Module'}{/if} - - {if !empty($hook['description'])} -  [{$hook['description']}] - {/if} - ({l s='Technical name: '}{$hook['name']})
{$module@iteration}= 2} align=center class="dragHandle"{/if} id="td_{$hook['id_hook']}_{$module['instance']->id}"> - {if $can_move} - - {l s='Up'} -
- - {l s='Down'} - - {/if} -
+ {foreach $hooks as $hook} +
+ + + + + + + + + + + + + {if $hook['module_count']} + {foreach $hook['modules'] as $position => $module} + {if isset($module['instance'])} + + + {if !$display_key} + + + + + + {/if} + {/foreach} + {else} + + + + {/if} +
+ {if $hook['module_count'] && $can_move} + + {/if} + {$hook['title']} - + {$hook['module_count']} {if $hook['module_count'] > 1}{l s='Modules'}{else}{l s='Module'}{/if} + {if !empty($hook['description'])} +

+ [{$hook['description']}] +

+ {/if} +

({l s='Technical name: '}{$hook['name']})

+
+ + {$module@iteration}= 2} align=center class="dragHandle"{/if} id="td_{$hook['id_hook']}_{$module['instance']->id}"> + {if $can_move} + + {l s='Up'} +
+ + {l s='Down'} + + {/if} +
+
+ {else} +
+
+ {/if} +

+ {$module['instance']->name|stripslashes} + {$module['instance']->displayName|stripslashes} +

+
+
{l s='Version:'}
+
+ {if $module['instance']->version}v{if $module['instance']->version|intval == $module['instance']->version}{sprintf('%.1f', $module['instance']->version)}{else}{$module['instance']->version|floatval}{/if}{/if} +
+
{l s='Description:'}
+
+ {$module['instance']->description} +
+
+
+
+ +
+

{l s='No module was found for this hook.'}

+
+
+ {/foreach} +
+ +
+
+

{l s='LiveEdit'}

+ {if $live_edit} +

{l s='You have to select a shop to use LiveEdit'}

{else} -
- {/if} - {$module['instance']->name|stripslashes}

{$module['instance']->displayName|stripslashes}

- {if $module['instance']->version}v{if $module['instance']->version|intval == $module['instance']->version}{sprintf('%.1f', $module['instance']->version)}{else}{$module['instance']->version|floatval}{/if}{/if}

{$module['instance']->description}

-
- - {l s='Edit'} +

{l s='Click here to be redirected to the Front Office of your shop where you can move and delete modules directly.'}

+
+ + {l s='Run LiveEdit'} - - {l s='Delete'} - -
{l s='No module was found for this hook.'}
-{/foreach} -
- -
-
- \ No newline at end of file +
+
+
\ No newline at end of file diff --git a/controllers/admin/AdminModulesPositionsController.php b/controllers/admin/AdminModulesPositionsController.php index 8b7820b19..76275766f 100644 --- a/controllers/admin/AdminModulesPositionsController.php +++ b/controllers/admin/AdminModulesPositionsController.php @@ -30,6 +30,7 @@ class AdminModulesPositionsControllerCore extends AdminController public function postProcess() { + $this->bootstrap = true; // Getting key value for display if (Tools::getValue('show_modules') && strval(Tools::getValue('show_modules')) != 'all') $this->display_key = (int)Tools::getValue('show_modules');