mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-28 20:47:28 +00:00
adjust colors and title of event
This commit is contained in:
parent
58de462ff5
commit
fe03d58100
|
@ -195,10 +195,13 @@ class SeedDMS_View_Calendar extends SeedDMS_Theme_Style {
|
||||||
$color = '#20a820';
|
$color = '#20a820';
|
||||||
break;
|
break;
|
||||||
case 'add_file':
|
case 'add_file':
|
||||||
$color = '#a82020';
|
$color = '#c3bf00';
|
||||||
break;
|
break;
|
||||||
case 'status_change':
|
case 'status_change':
|
||||||
$color = '#a8a8a8';
|
if($item['status'] == S_RELEASED)
|
||||||
|
$color = '#129a02';
|
||||||
|
else
|
||||||
|
$color = '#a8a8a8';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$color = '#20a8a8';
|
$color = '#20a8a8';
|
||||||
|
@ -206,7 +209,7 @@ class SeedDMS_View_Calendar extends SeedDMS_Theme_Style {
|
||||||
if ($item['document']->getAccessMode($user) >= M_READ)
|
if ($item['document']->getAccessMode($user) >= M_READ)
|
||||||
$arr[] = array(
|
$arr[] = array(
|
||||||
'start'=>$item['date'],
|
'start'=>$item['date'],
|
||||||
'title'=>$item['document']->getName()."\n".$item['msg'],
|
'title'=>$item['document']->getName()." (".$item['version'].")\n".getOverallStatusText($item['status']), //$item['msg'],
|
||||||
'allDay'=>false,
|
'allDay'=>false,
|
||||||
'color'=>$color,
|
'color'=>$color,
|
||||||
'type'=>$item['type'],
|
'type'=>$item['type'],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user