// Some list design fix

This commit is contained in:
Jerome Nadaud
2013-09-18 15:25:58 +02:00
parent 39fdc8c926
commit 0683ed4092
4 changed files with 19 additions and 14 deletions
@@ -30,17 +30,17 @@
class="{if isset($tr.class)} {$tr.class}{/if}"
{if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if}
>
{if {$has_bulk_actions}}
<td class="center">
{if {$has_bulk_actions}}
{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}
{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" />
{/if}
</td>
{/if}
{foreach $fields_display AS $key => $params}
{block name="open_td"}
<td
@@ -254,8 +254,10 @@
>
<thead>
<tr class="nodrag nodrop">
<th class="center">
{if $has_bulk_actions}
<th class="center fixed-width-xs">
</th>
{/if}
{foreach $fields_display AS $key => $params}
<th class="{if isset($params.class)}{$params.class}{/if}{if isset($params.align)} {$params.align}{/if}">
@@ -308,12 +310,11 @@
</tr>
{if !$simple_header && $show_filters}
<tr class="nodrag nodrop filter {if $row_hover}row_hover{/if}">
{if $has_bulk_actions}
<td class="center">
{if $has_bulk_actions}
--
{/if}
--
</td>
{/if}
{* Filters (input, select, date or bool) *}
{foreach $fields_display AS $key => $params}
<td {if isset($params.align)} class="{$params.align}" {/if}>
@@ -46,7 +46,8 @@ class AdminProfilesControllerCore extends AdminController
$this->fields_list = array(
'id_profile' => array(
'title' => $this->l('ID'),
'align' => 'center'
'align' => 'center',
'class' => 'fixed-width-xs'
),
'name' => array('title' => $this->l('Name'))
);
+5 -2
View File
@@ -46,7 +46,9 @@ class AdminTabsControllerCore extends AdminController
$this->fields_list = array(
'id_tab' => array(
'title' => $this->l('ID')
'title' => $this->l('ID'),
'align' => 'center',
'class' => 'fixed-width-xs'
),
'name' => array(
'title' => $this->l('Name')
@@ -71,7 +73,8 @@ class AdminTabsControllerCore extends AdminController
'position' => array(
'title' => $this->l('Position'),
'filter_key' => 'a!position',
'position' => 'position'
'position' => 'position',
'class' => 'fixed-width-md'
)
);