// List header fix

This commit is contained in:
Jerome Nadaud
2013-09-18 17:23:22 +02:00
parent ac1b9fd96e
commit 38d565110f
3 changed files with 14 additions and 15 deletions
@@ -30,17 +30,17 @@
class="{if isset($tr.class)} {$tr.class}{/if}" class="{if isset($tr.class)} {$tr.class}{/if}"
{if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if} {if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if}
> >
{if $has_bulk_actions}
<td class="center"> <td class="center">
{if isset($list_skip_actions.delete)} {if {$has_bulk_actions}}
{if !in_array($tr.$identifier, $list_skip_actions.delete)} {if isset($list_skip_actions.delete)}
{if !in_array($tr.$identifier, $list_skip_actions.delete)}
<input type="checkbox" name="{$table}Box[]" value="{$tr.$identifier}" class="noborder" />
{/if}
{else}
<input type="checkbox" name="{$table}Box[]" value="{$tr.$identifier}" class="noborder" /> <input type="checkbox" name="{$table}Box[]" value="{$tr.$identifier}" class="noborder" />
{/if} {/if}
{else}
<input type="checkbox" name="{$table}Box[]" value="{$tr.$identifier}" class="noborder" />
{/if} {/if}
</td> </td>
{/if}
{foreach $fields_display AS $key => $params} {foreach $fields_display AS $key => $params}
{block name="open_td"} {block name="open_td"}
<td <td
@@ -254,10 +254,8 @@
> >
<thead> <thead>
<tr class="nodrag nodrop"> <tr class="nodrag nodrop">
{if $has_bulk_actions}
<th class="center fixed-width-xs"> <th class="center fixed-width-xs">
</th> </th>
{/if}
{foreach $fields_display AS $key => $params} {foreach $fields_display AS $key => $params}
<th class="{if isset($params.class)}{$params.class}{/if}{if isset($params.align)} {$params.align}{/if}"> <th class="{if isset($params.class)}{$params.class}{/if}{if isset($params.align)} {$params.align}{/if}">
@@ -310,11 +308,12 @@
</tr> </tr>
{if !$simple_header && $show_filters} {if !$simple_header && $show_filters}
<tr class="nodrag nodrop filter {if $row_hover}row_hover{/if}"> <tr class="nodrag nodrop filter {if $row_hover}row_hover{/if}">
{if $has_bulk_actions}
<td class="center"> <td class="center">
-- {if $has_bulk_actions}
--
{/if}
</td> </td>
{/if}
{* Filters (input, select, date or bool) *} {* Filters (input, select, date or bool) *}
{foreach $fields_display AS $key => $params} {foreach $fields_display AS $key => $params}
<td {if isset($params.align)} class="{$params.align}" {/if}> <td {if isset($params.align)} class="{$params.align}" {/if}>
+4 -4
View File
@@ -47,10 +47,10 @@ class AdminMetaControllerCore extends AdminController
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?'))); $this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
$this->fields_list = array( $this->fields_list = array(
'id_meta' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25), 'id_meta' => array('title' => $this->l('ID'), 'align' => 'center', 'class' => 'fixed-width-xs'),
'page' => array('title' => $this->l('Page'), 'width' => 120), 'page' => array('title' => $this->l('Page')),
'title' => array('title' => $this->l('Title'), 'width' => 120), 'title' => array('title' => $this->l('Title')),
'url_rewrite' => array('title' => $this->l('Friendly URL'), 'width' => 120) 'url_rewrite' => array('title' => $this->l('Friendly URL'))
); );
$this->_group = 'GROUP BY a.id_meta'; $this->_group = 'GROUP BY a.id_meta';