New design for the tables - #3707
Former-commit-id: 7781a8b392919f38259aed142f01e786fc82698a
This commit is contained in:
parent
fd7cbf14cd
commit
187bdb1701
|
@ -330,6 +330,8 @@ if ($items) {
|
|||
if (defined('METACONSOLE')) {
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
} else {
|
||||
$table->class = 'info_table';
|
||||
}
|
||||
|
||||
$table->size = [];
|
||||
|
@ -493,6 +495,7 @@ foreach ($items as $item) {
|
|||
$row[6] = '';
|
||||
|
||||
if (check_acl($config['id_user'], $item['id_group'], 'RM')) {
|
||||
$table->cellclass[][6] = 'action_buttons';
|
||||
$row[6] .= '<a href="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=item_editor&action=edit&id_report='.$idReport.'&id_item='.$item['id_rc'].'">'.html_print_image('images/wrench_orange.png', true, ['title' => __('Edit')]).'</a>';
|
||||
$row[6] .= ' ';
|
||||
$row[6] .= '<a onClick="if (!confirm (\'Are you sure?\')) return false;" href="index.php?sec=reporting&sec2=godmode/reporting/reporting_builder&tab=list_items&action=delete&id_report='.$idReport.'&id_item='.$item['id_rc'].$urlFilter.'">'.html_print_image('images/cross.png', true, ['title' => __('Delete')]).'</a>';
|
||||
|
|
|
@ -5114,7 +5114,7 @@ table.info_table > tbody > tr > td > form > a > img {
|
|||
}
|
||||
|
||||
table.info_table > tbody > tr:hover {
|
||||
background-color: #eee;
|
||||
background-color: #eee !important;
|
||||
}
|
||||
|
||||
.info_table.profile_list > thead > tr > th > a.tip {
|
||||
|
@ -5338,6 +5338,20 @@ table.info_table.agent_info_table table.info_table {
|
|||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Tag view */
|
||||
table.info_table.policy_table tr {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
|
||||
table.info_table.policy_sub_table thead > tr:first-child th {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
table.info_table.policy_sub_table {
|
||||
padding: 20px 15px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Arrows to sort the tables. */
|
||||
.sort_arrow {
|
||||
display: inline-grid;
|
||||
|
|
|
@ -1255,7 +1255,7 @@ require 'include/php_to_js_values.php';
|
|||
<script type="text/javascript" language="javascript">
|
||||
|
||||
// When there are less than 5 rows, all rows must be white
|
||||
if($('table.info_table tbody > tr').length <= 5){
|
||||
if($('table.info_table tr').length < 5){
|
||||
$('table.info_table tbody > tr').css('background-color', '#fff');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue