From 735b20866b00cbf464d7e49071f4df13caabccd1 Mon Sep 17 00:00:00 2001 From: Kevin Granger Date: Mon, 2 Sep 2013 11:02:23 +0200 Subject: [PATCH] // BO Bootstrap Search result page --- .../controllers/search/helpers/view/view.tpl | 34 +++++++++++++++---- controllers/admin/AdminSearchController.php | 7 ++++ 2 files changed, 34 insertions(+), 7 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl index 2cafcee79..953857f88 100644 --- a/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl @@ -34,43 +34,54 @@ $(function() {
{block name="leadin"}{/block}
{/if} + {if isset($features)} +
{if !$features}

{l s='No features matching your query'} : {$query}

{else}

{l s='Features matching your query'} : {$query}

- +
+ {foreach $features key=key item=feature} {foreach $feature key=k item=val name=feature_list} - + + {/foreach} {/foreach} +
{if $smarty.foreach.feature_list.first}{$key}{/if}{if $smarty.foreach.feature_list.first}{$key}{/if} {$val.value}
-
 
{/if} +
{/if} + {if isset($modules)} +
{if !$modules}

{l s='No modules matching your query'} : {$query}

{else}

{l s='Modules matching your query'} : {$query}

- +
+ {foreach $modules key=key item=module} - + {/foreach} +
{$module->displayName}{$module->displayName} {$module->description}
-
 
{/if} +
{/if} + {if isset($categories)} +
{if !$categories}

{l s='No categories matching your query'} : {$query}

{else} @@ -82,30 +93,39 @@ $(function() { {/foreach} -
 
{/if} +
{/if} + {if isset($products)} +
{if !$products}

{l s='There are no products matching your query'} : {$query}

{else}

{l s='Products matching your query'} : {$query}

{$products} {/if} +
{/if} + {if isset($customers)} +
{if !$customers}

{l s='There are no customers matching your query'} : {$query}

{else}

{l s='Customers matching your query'} : {$query}

{$customers} {/if} +
{/if} + {if isset($orders)} +
{if !$orders}

{l s='There are no orders matching your query'} : {$query}

{else}

{l s='Orders matching your query'} : {$query}

{$orders} {/if} +
{/if} \ No newline at end of file diff --git a/controllers/admin/AdminSearchController.php b/controllers/admin/AdminSearchController.php index 03a993ccc..85b01a9c2 100644 --- a/controllers/admin/AdminSearchController.php +++ b/controllers/admin/AdminSearchController.php @@ -26,6 +26,13 @@ class AdminSearchControllerCore extends AdminController { + + public function __construct() + { + $this->bootstrap = true; + parent::__construct(); + } + public function postProcess() { $this->context = Context::getContext();