From 6e3518fbf37b0c6850bd899ac11ba445b06a759a Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 8 Mar 2012 13:54:26 +0000 Subject: [PATCH] // Add td_content block in list_content.tpl helper list --- .../template/helpers/list/list_content.tpl | 130 +++++++++--------- 1 file changed, 66 insertions(+), 64 deletions(-) diff --git a/admin-dev/themes/default/template/helpers/list/list_content.tpl b/admin-dev/themes/default/template/helpers/list/list_content.tpl index 7c71b5387..8f4c432e6 100644 --- a/admin-dev/themes/default/template/helpers/list/list_content.tpl +++ b/admin-dev/themes/default/template/helpers/list/list_content.tpl @@ -44,79 +44,81 @@ {foreach $fields_display AS $key => $params} {block name="open_td"} - - {else} + onclick="document.location = '{$current_index}&{$identifier}={$tr.$identifier}{if $view}&view{else}&update{/if}{$table}&token={$token}'"> + {else} > {/if} {/block} - {if isset($params.prefix)}{$params.prefix}{/if} - {if isset($params.color) && isset($tr[$params.color])} - - {/if} - - {if isset($params.active)} - {$tr.$key} - {elseif isset($params.activeVisu)} - {if $tr.$key}{l s='Enabled'}{else}{l s='Disabled'}{/if} - {elseif isset($params.position)} - {if $order_by == 'position' && $order_way != 'DESC'} - - {l s='Down'} - - - - {l s='Up'} - - {else} - {$tr.$key.position + 1} + {block name="td_content"} + {if isset($params.prefix)}{$params.prefix}{/if} + {if isset($params.color) && isset($tr[$params.color])} + {/if} - {elseif isset($params.image)} - {$tr.$key} - {elseif isset($params.icon)} - {$tr[$key]} - {elseif isset($params.price)} - {$tr.$key} - {elseif isset($params.float)} - {$tr.$key} - {elseif isset($params.type) && $params.type == 'date'} - {$tr.$key} - {elseif isset($params.type) && $params.type == 'datetime'} - {$tr.$key} - {elseif isset($params.type) && $params.type == 'decimal'} - {$tr.$key|string_format:"%.2f"} - {elseif isset($params.type) && $params.type == 'percent'} - {$tr.$key} {l s='%'} - {* If type is 'editable', an input is created *} - {elseif isset($params.type) && $params.type == 'editable' && isset($tr.id)} - - {elseif isset($params.callback)} - {$tr.$key} - {elseif isset($tr.$key) && $key == 'color'} -
- {elseif isset($tr.$key)} - {if isset($params.maxlength) && Tools::strlen($tr.$key) > $params.maxlength} - {$tr.$key|truncate:$params.maxlength:'...'|escape:'htmlall':'UTF-8'} + + {if isset($params.active)} + {$tr.$key} + {elseif isset($params.activeVisu)} + {if $tr.$key}{l s='Enabled'}{else}{l s='Disabled'}{/if} + {elseif isset($params.position)} + {if $order_by == 'position' && $order_way != 'DESC'} + + {l s='Down'} + + + + {l s='Up'} + + {else} + {$tr.$key.position + 1} + {/if} + {elseif isset($params.image)} + {$tr.$key} + {elseif isset($params.icon)} + {$tr[$key]} + {elseif isset($params.price)} + {$tr.$key} + {elseif isset($params.float)} + {$tr.$key} + {elseif isset($params.type) && $params.type == 'date'} + {$tr.$key} + {elseif isset($params.type) && $params.type == 'datetime'} + {$tr.$key} + {elseif isset($params.type) && $params.type == 'decimal'} + {$tr.$key|string_format:"%.2f"} + {elseif isset($params.type) && $params.type == 'percent'} + {$tr.$key} {l s='%'} + {* If type is 'editable', an input is created *} + {elseif isset($params.type) && $params.type == 'editable' && isset($tr.id)} + + {elseif isset($params.callback)} + {$tr.$key} + {elseif isset($tr.$key) && $key == 'color'} +
+ {elseif isset($tr.$key)} + {if isset($params.maxlength) && Tools::strlen($tr.$key) > $params.maxlength} + {$tr.$key|truncate:$params.maxlength:'...'|escape:'htmlall':'UTF-8'} + {else} + {$tr.$key|escape:'htmlall':'UTF-8'} + {/if} {else} - {$tr.$key|escape:'htmlall':'UTF-8'} + {block name="default_field_block"}--{/block} {/if} - {else} - {block name="default_field_block"}--{/block} - {/if} - {if isset($params.suffix)}{$params.suffix}{/if} - {if isset($params.color) && isset($tr.color)} -
- {/if} - + {if isset($params.suffix)}{$params.suffix}{/if} + {if isset($params.color) && isset($tr.color)} +
+ {/if} + + {/block} {/foreach} {if $shop_link_type}