// Added row_hover parameter to enable or disable row color on hover
This commit is contained in:
@@ -125,9 +125,9 @@ input.button[disabled=disabled]:hover{background-color:#FFF6D3}
|
||||
font-size:13px; text-align:left; color:#333;}
|
||||
.table tr th.right { text-align:center;}
|
||||
.table tr td{border-bottom:1px solid #ccc;color:#333;font-size:12px;padding: 4px 4px 4px 6px;}
|
||||
.table tr:hover td{background:#fff1b5}
|
||||
.table tr.filter:hover td{background:#F1F9FF}
|
||||
.table tr td:hover table tr td{background:none}
|
||||
.table tr.row_hover:hover td{background:#fff1b5}
|
||||
.table tr.row_hover.filter:hover td{background:#F1F9FF}
|
||||
.table tr td.row_hover:hover table tr td{background:none}
|
||||
.table tr.action_details td{background:#FAFAFA;}
|
||||
.table tr.alt_row.action_details td{background:#E8E8E8;}
|
||||
.table tr td.empty{border-bottom:none;background:white!important}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
{foreach $list AS $index => $tr}
|
||||
<tr
|
||||
{if $is_dnd_identifier}id="tr_{$id_category}_{$tr.$identifier}_{if isset($tr.position['position'])}{$tr.position['position']}{else}0{/if}"{/if}
|
||||
{if $index is odd}class="alt_row"{/if}
|
||||
class="{if $index is odd}alt_row{/if} {if $row_hover}row_hover{/if}"
|
||||
{if isset($tr.color) && $color_on_bg}style="background-color: {$tr.color}"{/if}
|
||||
>
|
||||
<td class="center">
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
{/if}
|
||||
</tr>
|
||||
{if !$simple_header}
|
||||
<tr class="nodrag nodrop filter" style="height: 35px;">
|
||||
<tr class="nodrag nodrop filter {if $row_hover}row_hover{/if}" style="height: 35px;">
|
||||
<td class="center">
|
||||
{if $has_bulk_actions}
|
||||
--
|
||||
|
||||
@@ -226,15 +226,17 @@ class AdminControllerCore extends Controller
|
||||
protected $noLink;
|
||||
protected $specificConfirmDelete;
|
||||
protected $colorOnBackground;
|
||||
/** @var bool If true, activates color on hover */
|
||||
protected $row_hover = true;
|
||||
/** @string Action to perform : 'edit', 'view', 'add', ... */
|
||||
protected $action;
|
||||
protected $display;
|
||||
protected $_includeContainer = true;
|
||||
|
||||
public $tpl_folder;
|
||||
|
||||
|
||||
protected $bo_theme;
|
||||
|
||||
|
||||
/** @var bool Redirect or not ater a creation */
|
||||
protected $_redirect = true;
|
||||
|
||||
@@ -1575,6 +1577,7 @@ class AdminControllerCore extends Controller
|
||||
$helper->default_form_language = $this->default_form_language;
|
||||
$helper->allow_employee_form_lang = $this->allow_employee_form_lang;
|
||||
$helper->multiple_fieldsets = $this->multiple_fieldsets;
|
||||
$helper->row_hover = $this->row_hover;
|
||||
|
||||
// For each action, try to add the corresponding skip elements list
|
||||
$helper->list_skip_actions = $this->list_skip_actions;
|
||||
|
||||
@@ -97,6 +97,9 @@ class HelperListCore extends Helper
|
||||
public $specificConfirmDelete;
|
||||
public $colorOnBackground;
|
||||
|
||||
/** @var bool If true, activates color on hover */
|
||||
public $row_hover = true;
|
||||
|
||||
protected $identifiersDnd = array(
|
||||
'id_product' => 'id_product',
|
||||
'id_category' => 'id_category_to_move',
|
||||
@@ -335,6 +338,7 @@ class HelperListCore extends Helper
|
||||
'has_actions' => !empty($this->actions),
|
||||
'has_bulk_actions' => !empty($this->bulk_actions),
|
||||
'list_skip_actions' => $this->list_skip_actions,
|
||||
'row_hover' => $this->row_hover,
|
||||
)));
|
||||
return $this->content_tpl->fetch();
|
||||
}
|
||||
@@ -620,6 +624,7 @@ class HelperListCore extends Helper
|
||||
'table_dnd' => isset($table_dnd) ? $table_dnd : null,
|
||||
'name' => isset($name) ? $name : null,
|
||||
'name_id' => isset($name_id) ? $name_id : null,
|
||||
'row_hover' => $this->row_hover,
|
||||
)));
|
||||
|
||||
return $this->header_tpl->fetch();
|
||||
|
||||
Reference in New Issue
Block a user