mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
More condensed way of displaying the response choices.
This commit is contained in:
parent
fcbae4b4f8
commit
f6bfb99964
@ -1798,44 +1798,24 @@ class calendar extends calendar_
|
||||
);
|
||||
$p->set_file($templates);
|
||||
|
||||
$var = Array(
|
||||
'action_url_button' => $phpgw->link('/calendar/action.php','id='.$this->event->id.'&action='.ACCEPTED),
|
||||
'action_text_button' => ' '.lang('Accept').' ',
|
||||
'action_confirm_button' => '',
|
||||
'action_extra_field' => ''
|
||||
$response_choices = Array(
|
||||
ACCEPTED => lang('Accept'),
|
||||
REJECTED => lang('Reject'),
|
||||
TENTATIVE => lang('Tentative'),
|
||||
NO_RESPONSE => lang('No Response')
|
||||
);
|
||||
$p->set_var($var);
|
||||
$str .= '<td>'.$p->fp('out','form_button').'</td>'."\n";
|
||||
|
||||
$var = Array(
|
||||
'action_url_button' => $phpgw->link('/calendar/action.php','id='.$this->event->id.'&action='.REJECTED),
|
||||
'action_text_button' => ' '.lang('Reject').' ',
|
||||
'action_confirm_button' => '',
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
$str .= '<td>'.$p->fp('out','form_button').'</td>'."\n";
|
||||
|
||||
$var = Array(
|
||||
'action_url_button' => $phpgw->link('/calendar/action.php','id='.$this->event->id.'&action='.TENTATIVE),
|
||||
'action_text_button' => ' '.lang('Tentative').' ',
|
||||
'action_confirm_button' => '',
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
$str .= '<td>'.$p->fp('out','form_button').'</td>'."\n";
|
||||
|
||||
$var = Array(
|
||||
'action_url_button' => $phpgw->link('/calendar/action.php','id='.$this->event->id.'&action='.NO_RESPONSE),
|
||||
'action_text_button' => ' '.lang('No Response').' ',
|
||||
'action_confirm_button' => '',
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
$str .= '<td>'.$p->fp('out','form_button').'</td>'."\n";
|
||||
|
||||
while(list($param,$text) = each($response_choices))
|
||||
{
|
||||
$var = Array(
|
||||
'action_url_button' => $phpgw->link('/calendar/action.php','id='.$this->event->id.'&action='.$param),
|
||||
'action_text_button' => ' '.$text.' ',
|
||||
'action_confirm_button' => '',
|
||||
'action_extra_field' => ''
|
||||
);
|
||||
$p->set_var($var);
|
||||
$str .= '<td>'.$p->fp('out','form_button').'</td>'."\n";
|
||||
}
|
||||
$str .= '</tr></table>';
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user