mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 08:19:45 +01:00
This now makes the private/public option when creating new events a configurable item through preferences.
This commit is contained in:
parent
33fa130720
commit
62085db3de
@ -123,7 +123,14 @@
|
|||||||
$phpgw->calendar->event_set_title($cal_stream,'');
|
$phpgw->calendar->event_set_title($cal_stream,'');
|
||||||
$phpgw->calendar->event_set_description($cal_stream,'');
|
$phpgw->calendar->event_set_description($cal_stream,'');
|
||||||
$phpgw->calendar->event->priority = 2;
|
$phpgw->calendar->event->priority = 2;
|
||||||
$phpgw->calendar->event_set_class(True);
|
if($phpgw_info['user']['preferences']['calendar']['default_private'] == 'Y' || $phpgw_info['user']['preferences']['calendar']['default_private'] == True)
|
||||||
|
{
|
||||||
|
$phpgw->calendar->event_set_class(False);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$phpgw->calendar->event_set_class(True);
|
||||||
|
}
|
||||||
|
|
||||||
$phpgw->calendar->event_set_recur_none($cal_stream);
|
$phpgw->calendar->event_set_recur_none($cal_stream);
|
||||||
$event = $phpgw->calendar->event;
|
$event = $phpgw->calendar->event;
|
||||||
|
@ -57,6 +57,14 @@
|
|||||||
$phpgw->preferences->delete('calendar','display_status');
|
$phpgw->preferences->delete('calendar','display_status');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($default_private == True)
|
||||||
|
{
|
||||||
|
$phpgw->preferences->add('calendar','default_private');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$phpgw->preferences->delete('calendar','default_private');
|
||||||
|
}
|
||||||
$phpgw->preferences->save_repository(True);
|
$phpgw->preferences->save_repository(True);
|
||||||
|
|
||||||
Header('Location: '.$phpgw->link('/preferences/index.php'));
|
Header('Location: '.$phpgw->link('/preferences/index.php'));
|
||||||
@ -171,6 +179,9 @@
|
|||||||
$str = '<input type="checkbox" name="display_status" value="True"'.($phpgw_info['user']['preferences']['calendar']['display_status'] == 'Y' || $phpgw_info['user']['preferences']['calendar']['display_status'] == True?' checked':'').'>';
|
$str = '<input type="checkbox" name="display_status" value="True"'.($phpgw_info['user']['preferences']['calendar']['display_status'] == 'Y' || $phpgw_info['user']['preferences']['calendar']['display_status'] == True?' checked':'').'>';
|
||||||
display_item(lang('display status of events'),$str);
|
display_item(lang('display status of events'),$str);
|
||||||
|
|
||||||
|
$str = '<input type="checkbox" name="default_private" value="True"'.($phpgw_info['user']['preferences']['calendar']['default_private'] == 'Y' || $phpgw_info['user']['preferences']['calendar']['default_private'] == True?' checked':'').'>';
|
||||||
|
display_item(lang('when creating new events default set to private'),$str);
|
||||||
|
|
||||||
$p->pparse('out','pref');
|
$p->pparse('out','pref');
|
||||||
$phpgw->common->phpgw_footer();
|
$phpgw->common->phpgw_footer();
|
||||||
?>
|
?>
|
||||||
|
@ -132,6 +132,7 @@ detail tts en Detail
|
|||||||
disabled admin en Disabled
|
disabled admin en Disabled
|
||||||
display admin en Display
|
display admin en Display
|
||||||
display missing phrases in lang set transy en Display missing phrases in lang set
|
display missing phrases in lang set transy en Display missing phrases in lang set
|
||||||
|
display status of events calendar en Display Status of Events
|
||||||
done common en Done
|
done common en Done
|
||||||
download filemanager en Download
|
download filemanager en Download
|
||||||
do_delete filemanager en Delete
|
do_delete filemanager en Delete
|
||||||
@ -537,6 +538,7 @@ wednesday common en Wednesday
|
|||||||
week calendar en Week
|
week calendar en Week
|
||||||
weekday starts on calendar en Weekday starts on
|
weekday starts on calendar en Weekday starts on
|
||||||
weekly calendar en Weekly
|
weekly calendar en Weekly
|
||||||
|
when creating new events default set to private calendar en When creating new events default set to private
|
||||||
which groups common en Which groups
|
which groups common en Which groups
|
||||||
work day ends on calendar en Work day ends on
|
work day ends on calendar en Work day ends on
|
||||||
work day starts on calendar en Work day starts on
|
work day starts on calendar en Work day starts on
|
||||||
|
Loading…
Reference in New Issue
Block a user