NEW Days where user is on vacation use different colors in timesheet.
This commit is contained in:
parent
2a04d497da
commit
5f7631a95d
@ -733,8 +733,9 @@ function projectLinesPerDay(&$inc, $parent, $fuser, $lines, &$level, &$projectsr
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
$cssonholiday='';
|
$cssonholiday='';
|
||||||
if (! $isavailable[$preselectedday]['morning']) $cssonholiday.='onholidaymorning ';
|
if (! $isavailable[$preselectedday]['morning'] && ! $isavailable[$preselectedday]['afternoon']) $cssonholiday.='onholidayallday ';
|
||||||
if (! $isavailable[$preselectedday]['afternoon']) $cssonholiday.='onholidayafternoon ';
|
elseif (! $isavailable[$preselectedday]['morning']) $cssonholiday.='onholidaymorning ';
|
||||||
|
elseif (! $isavailable[$preselectedday]['afternoon']) $cssonholiday.='onholidayafternoon ';
|
||||||
|
|
||||||
// Duration
|
// Duration
|
||||||
print '<td align="right" class="duration'.($cssonholiday?' '.$cssonholiday:'').'">';
|
print '<td align="right" class="duration'.($cssonholiday?' '.$cssonholiday:'').'">';
|
||||||
@ -970,8 +971,9 @@ function projectLinesPerWeek(&$inc, $firstdaytoshow, $fuser, $parent, $lines, &$
|
|||||||
$tmpday=dol_time_plus_duree($firstdaytoshow, $idw, 'd');
|
$tmpday=dol_time_plus_duree($firstdaytoshow, $idw, 'd');
|
||||||
|
|
||||||
$cssonholiday='';
|
$cssonholiday='';
|
||||||
if (! $isavailable[$tmpday]['morning']) $cssonholiday.='onholidaymorning ';
|
if (! $isavailable[$tmpday]['morning'] && ! $isavailable[$tmpday]['afternoon']) $cssonholiday.='onholidayallday ';
|
||||||
if (! $isavailable[$tmpday]['afternoon']) $cssonholiday.='onholidayafternoon ';
|
elseif (! $isavailable[$tmpday]['morning']) $cssonholiday.='onholidaymorning ';
|
||||||
|
elseif (! $isavailable[$tmpday]['afternoon']) $cssonholiday.='onholidayafternoon ';
|
||||||
|
|
||||||
$tmparray=dol_getdate($tmpday);
|
$tmparray=dol_getdate($tmpday);
|
||||||
$dayWorkLoad = $projectstatic->weekWorkLoadPerTask[$tmpday][$lines[$i]->id];
|
$dayWorkLoad = $projectstatic->weekWorkLoadPerTask[$tmpday][$lines[$i]->id];
|
||||||
|
|||||||
@ -85,7 +85,7 @@ if (empty($search_usertoprocessid) || $search_usertoprocessid == $user->id)
|
|||||||
$usertoprocess=$user;
|
$usertoprocess=$user;
|
||||||
$search_usertoprocessid=$usertoprocess->id;
|
$search_usertoprocessid=$usertoprocess->id;
|
||||||
}
|
}
|
||||||
elseif (search_usertoprocessid > 0)
|
elseif ($search_usertoprocessid > 0)
|
||||||
{
|
{
|
||||||
$usertoprocess=new User($db);
|
$usertoprocess=new User($db);
|
||||||
$usertoprocess->fetch($search_usertoprocessid);
|
$usertoprocess->fetch($search_usertoprocessid);
|
||||||
|
|||||||
@ -98,7 +98,7 @@ if (empty($search_usertoprocessid) || $search_usertoprocessid == $user->id)
|
|||||||
$usertoprocess=$user;
|
$usertoprocess=$user;
|
||||||
$search_usertoprocessid=$usertoprocess->id;
|
$search_usertoprocessid=$usertoprocess->id;
|
||||||
}
|
}
|
||||||
elseif (search_usertoprocessid > 0)
|
elseif ($search_usertoprocessid > 0)
|
||||||
{
|
{
|
||||||
$usertoprocess=new User($db);
|
$usertoprocess=new User($db);
|
||||||
$usertoprocess->fetch($search_usertoprocessid);
|
$usertoprocess->fetch($search_usertoprocessid);
|
||||||
|
|||||||
@ -387,12 +387,18 @@ input.buttonpaymentstripe {
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 8px 7px;
|
background-position: 8px 7px;
|
||||||
}
|
}
|
||||||
|
/* Used by timesheets */
|
||||||
span.timesheetalreadyrecorded input {
|
span.timesheetalreadyrecorded input {
|
||||||
border: none;
|
border: none;
|
||||||
border-bottom: solid 1px rgba(0,0,0,0.4);
|
border-bottom: solid 1px rgba(0,0,0,0.4);
|
||||||
margin-right: 1px !important;
|
margin-right: 1px !important;
|
||||||
}
|
}
|
||||||
|
td.onholidaymorning, td.onholidayafternoon {
|
||||||
|
background-color: #fdf6f2;
|
||||||
|
}
|
||||||
|
td.onholidayallday {
|
||||||
|
background-color: #f4eede;
|
||||||
|
}
|
||||||
select.flat, form.flat select {
|
select.flat, form.flat select {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -384,11 +384,18 @@ input.buttonpaymentstripe {
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: 8px 7px;
|
background-position: 8px 7px;
|
||||||
}
|
}
|
||||||
|
/* Used for timesheets */
|
||||||
span.timesheetalreadyrecorded input {
|
span.timesheetalreadyrecorded input {
|
||||||
border: none;
|
border: none;
|
||||||
border-bottom: solid 1px rgba(0,0,0,0.1);
|
border-bottom: solid 1px rgba(0,0,0,0.1);
|
||||||
margin-right: 1px !important;
|
margin-right: 1px !important;
|
||||||
}
|
}
|
||||||
|
td.onholidaymorning, td.onholidayafternoon {
|
||||||
|
background-color: #fdf6f2;
|
||||||
|
}
|
||||||
|
td.onholidayallday {
|
||||||
|
background-color: #f4eede;
|
||||||
|
}
|
||||||
|
|
||||||
select.flat, form.flat select {
|
select.flat, form.flat select {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user