// Some list design fix

This commit is contained in:
Jerome Nadaud committed 2013-09-18 15:25:58 +02:00
1 parent 39fdc8c926
commit 0683ed4092
4 files changed
+19 -14

No files matched your search

@@ -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 {$has_bulk_actions}} {if isset($list_skip_actions.delete)}
{if isset($list_skip_actions.delete)} {if !in_array($tr.$identifier, $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,8 +254,10 @@
> >
<thead> <thead>
<tr class="nodrag nodrop"> <tr class="nodrag nodrop">
<th class="center"> {if $has_bulk_actions}
<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}">
@@ -308,12 +310,11 @@
</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}>
@@ -46,7 +46,8 @@ class AdminProfilesControllerCore extends AdminController
$this->fields_list = array( $this->fields_list = array(
'id_profile' => array( 'id_profile' => array(
'title' => $this->l('ID'), 'title' => $this->l('ID'),
'align' => 'center' 'align' => 'center',
'class' => 'fixed-width-xs'
), ),
'name' => array('title' => $this->l('Name')) 'name' => array('title' => $this->l('Name'))
); );
+5 -2
View File
@@ -46,7 +46,9 @@ class AdminTabsControllerCore extends AdminController
$this->fields_list = array( $this->fields_list = array(
'id_tab' => array( 'id_tab' => array(
'title' => $this->l('ID') 'title' => $this->l('ID'),
'align' => 'center',
'class' => 'fixed-width-xs'
), ),
'name' => array( 'name' => array(
'title' => $this->l('Name') 'title' => $this->l('Name')
@@ -71,7 +73,8 @@ class AdminTabsControllerCore extends AdminController
'position' => array( 'position' => array(
'title' => $this->l('Position'), 'title' => $this->l('Position'),
'filter_key' => 'a!position', 'filter_key' => 'a!position',
'position' => 'position' 'position' => 'position',
'class' => 'fixed-width-md'
) )
); );