patch lang problem.
-The first letter in the acceptance view in tooltip replaced by a icon. -Added images for tooltip
@ -172,10 +172,6 @@ class bocal
|
|||||||
|
|
||||||
$this->grants = $GLOBALS['egw']->acl->get_grants('calendar');
|
$this->grants = $GLOBALS['egw']->acl->get_grants('calendar');
|
||||||
|
|
||||||
foreach($this->verbose_status as $status => $text)
|
|
||||||
{
|
|
||||||
$this->verbose_status[$status] = lang($text);
|
|
||||||
}
|
|
||||||
if (!is_array($this->resources = $GLOBALS['egw']->session->appsession('resources','calendar')))
|
if (!is_array($this->resources = $GLOBALS['egw']->session->appsession('resources','calendar')))
|
||||||
{
|
{
|
||||||
$this->resources = array();
|
$this->resources = array();
|
||||||
@ -1360,7 +1356,7 @@ class bocal
|
|||||||
* @param boolean $show_group_invitation=false show group-invitations (status == 'G') or not (default)
|
* @param boolean $show_group_invitation=false show group-invitations (status == 'G') or not (default)
|
||||||
* @return array with id / names with status pairs
|
* @return array with id / names with status pairs
|
||||||
*/
|
*/
|
||||||
function participants($event,$long_status=False,$show_group_invitation=false)
|
function participants($event,$long_status=true,$show_group_invitation=false)
|
||||||
{
|
{
|
||||||
//_debug_array($event);
|
//_debug_array($event);
|
||||||
$names = array();
|
$names = array();
|
||||||
@ -1369,12 +1365,28 @@ class bocal
|
|||||||
if ($status == 'G' && !$show_group_invitation) continue; // dont show group-invitation
|
if ($status == 'G' && !$show_group_invitation) continue; // dont show group-invitation
|
||||||
|
|
||||||
$status = $this->verbose_status[$status];
|
$status = $this->verbose_status[$status];
|
||||||
|
if($status == "Accepted")
|
||||||
|
{
|
||||||
|
$status = $GLOBALS['egw']->html->image('calendar','agt_action_success',lang($status));
|
||||||
|
}
|
||||||
|
else if($status == "Rejected")
|
||||||
|
{
|
||||||
|
$status = $GLOBALS['egw']->html->image('calendar','agt_action_fail',lang($status));
|
||||||
|
}
|
||||||
|
else if($status == "Tentative")
|
||||||
|
{
|
||||||
|
$status = $GLOBALS['egw']->html->image('calendar','tentative',lang($status));
|
||||||
|
}
|
||||||
|
else if($status == "No Response")
|
||||||
|
{
|
||||||
|
$status = $GLOBALS['egw']->html->image('calendar','cnr-pending',lang($status));
|
||||||
|
}
|
||||||
|
|
||||||
if (!$long_status)
|
if (!$long_status)
|
||||||
{
|
{
|
||||||
$status = substr($status,0,1);
|
$status = substr($status,0,1);
|
||||||
}
|
}
|
||||||
$names[$id] = $this->participant_name($id).' ('.$status.')';
|
$names[$id] = $this->participant_name($id).' '.$status;
|
||||||
}
|
}
|
||||||
return $names;
|
return $names;
|
||||||
}
|
}
|
||||||
|
BIN
calendar/templates/default/images/agt_action_fail.gif
Executable file
After Width: | Height: | Size: 1.9 KiB |
BIN
calendar/templates/default/images/agt_action_fail.png
Executable file
After Width: | Height: | Size: 840 B |
BIN
calendar/templates/default/images/agt_action_success.gif
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
calendar/templates/default/images/agt_action_success.png
Executable file
After Width: | Height: | Size: 634 B |
BIN
calendar/templates/default/images/cnr-pending.gif
Executable file
After Width: | Height: | Size: 615 B |
BIN
calendar/templates/default/images/cnr-pending.png
Executable file
After Width: | Height: | Size: 851 B |
BIN
calendar/templates/default/images/tentative.gif
Executable file
After Width: | Height: | Size: 583 B |
BIN
calendar/templates/default/images/tentative.png
Executable file
After Width: | Height: | Size: 680 B |