Page 1 of 1
due_date_warning_levels
Posted: 20 Mar 2020, 14:04
by amphetamine
* - Array keys 1 and 2 offer two levels of "Due soon": orange and green.
* By default, only the first one is set, to 7 days.
∨ no problem with that
Code: Select all
$g_due_date_warning_levels = array(
0,
7 * SECONDS_PER_DAY,
);
how to add array key 2 to show the green light?
∨ not working
Code: Select all
$g_due_date_warning_levels = array(
0,
7 * SECONDS_PER_DAY,
14,
);
Re: due_date_warning_levels
Posted: 20 Mar 2020, 14:42
by atrol
amphetamine wrote: ↑20 Mar 2020, 14:04
Code: Select all
$g_due_date_warning_levels = array(
0,
7 * SECONDS_PER_DAY,
14,
);
Didn't try, but this should work
Code: Select all
$g_due_date_warning_levels = array(
0,
7 * SECONDS_PER_DAY,
14 * SECONDS_PER_DAY,
);
Re: due_date_warning_levels
Posted: 21 Mar 2020, 01:00
by amphetamine
Thank you!
Re: due_date_warning_levels
Posted: 24 Mar 2020, 12:51
by amphetamine
how to change green color to yellow?
Re: due_date_warning_levels
Posted: 24 Mar 2020, 18:01
by atrol
The color is defined in css/default.css
Code: Select all
td.due-2 { background-color: green; color: #ffffff; font-weight: bold; }
You can change it at this place (don't forget to change it agian after upgrades), or use option $g_css_include_file to create your own css file, or write a plugin that changes the style via JavaScript.
After changing the css-file you might have to clear your browser cache to see the change.