From 6f2d02442dcd3c7175c03ef6f918603baa1c7ed5 Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Fri, 30 Sep 2011 10:00:20 +0000 Subject: [PATCH] // Update list generation --- admin-dev/themes/template/list_header.tpl | 18 ++++--- classes/AdminController.php | 34 +++++++------ classes/Helper.php | 48 ++++++++++++++++++- classes/HelperList.php | 25 ++++++---- .../admin/AdminAddressesController.php | 22 ++------- 5 files changed, 94 insertions(+), 53 deletions(-) diff --git a/admin-dev/themes/template/list_header.tpl b/admin-dev/themes/template/list_header.tpl index 18f5242ce..3b60af894 100644 --- a/admin-dev/themes/template/list_header.tpl +++ b/admin-dev/themes/template/list_header.tpl @@ -28,8 +28,7 @@ @@ -44,7 +43,9 @@ {/if} - +{if $add_button} +
{l s='Add new'}

+{/if}  
@@ -80,9 +81,8 @@ identifier,$this->identifiersDnd) ? ' id="'.(((int)(Tools::getValue($this->identifiersDnd[$this->identifier], 1))) ? substr($this->identifier,3,strlen($this->identifier)) : '').'"' : '' )*} - class="table" - {*(array_key_exists($this->identifier,$this->identifiersDnd) AND ($this->_orderBy != 'position 'AND $this->_orderWay != 'DESC')) ? ' tableDnD' : '' ).'"*} + {if $table_id} id={$table_id}{/if} + class="table {if $table_dnd}tableDnd{/if}" cellpadding="0" cellspacing="0"> @@ -138,10 +138,8 @@ {elseif $params.type == 'date' || $params.type == 'datetime'} - {* - {l s='From'}
- {l s='To'} - *} + {l s='From'}
+ {l s='To'} {elseif $params.type == 'select'} {if isset($params.filter_key)}