Changeset View
Changeset View
Standalone View
Standalone View
plugins/calendar/lib/calendar_ui.php
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | public function init_templates() | ||||
$this->cal->register_handler('plugin.attendees_form', array($this, 'attendees_form')); | $this->cal->register_handler('plugin.attendees_form', array($this, 'attendees_form')); | ||||
$this->cal->register_handler('plugin.resources_form', array($this, 'resources_form')); | $this->cal->register_handler('plugin.resources_form', array($this, 'resources_form')); | ||||
$this->cal->register_handler('plugin.resources_list', array($this, 'resources_list')); | $this->cal->register_handler('plugin.resources_list', array($this, 'resources_list')); | ||||
$this->cal->register_handler('plugin.resources_searchform', array($this, 'resources_search_form')); | $this->cal->register_handler('plugin.resources_searchform', array($this, 'resources_search_form')); | ||||
$this->cal->register_handler('plugin.resource_info', array($this, 'resource_info')); | $this->cal->register_handler('plugin.resource_info', array($this, 'resource_info')); | ||||
$this->cal->register_handler('plugin.resource_calendar', array($this, 'resource_calendar')); | $this->cal->register_handler('plugin.resource_calendar', array($this, 'resource_calendar')); | ||||
$this->cal->register_handler('plugin.attendees_freebusy_table', array($this, 'attendees_freebusy_table')); | $this->cal->register_handler('plugin.attendees_freebusy_table', array($this, 'attendees_freebusy_table')); | ||||
$this->cal->register_handler('plugin.edit_attendees_notify', array($this, 'edit_attendees_notify')); | $this->cal->register_handler('plugin.edit_attendees_notify', array($this, 'edit_attendees_notify')); | ||||
$this->cal->register_handler('plugin.edit_recurrence_sync', array($this, 'edit_recurrence_sync')); | |||||
$this->cal->register_handler('plugin.edit_recurring_warning', array($this, 'recurring_event_warning')); | $this->cal->register_handler('plugin.edit_recurring_warning', array($this, 'recurring_event_warning')); | ||||
$this->cal->register_handler('plugin.event_rsvp_buttons', array($this, 'event_rsvp_buttons')); | $this->cal->register_handler('plugin.event_rsvp_buttons', array($this, 'event_rsvp_buttons')); | ||||
$this->cal->register_handler('plugin.angenda_options', array($this, 'angenda_options')); | $this->cal->register_handler('plugin.angenda_options', array($this, 'angenda_options')); | ||||
$this->cal->register_handler('plugin.events_import_form', array($this, 'events_import_form')); | $this->cal->register_handler('plugin.events_import_form', array($this, 'events_import_form')); | ||||
$this->cal->register_handler('plugin.events_export_form', array($this, 'events_export_form')); | $this->cal->register_handler('plugin.events_export_form', array($this, 'events_export_form')); | ||||
$this->cal->register_handler('plugin.object_changelog_table', array('libkolab', 'object_changelog_table')); | $this->cal->register_handler('plugin.object_changelog_table', array('libkolab', 'object_changelog_table')); | ||||
$this->cal->register_handler('plugin.searchform', array($this->rc->output, 'search_form')); // use generic method from rcube_template | $this->cal->register_handler('plugin.searchform', array($this->rc->output, 'search_form')); // use generic method from rcube_template | ||||
} | } | ||||
▲ Show 20 Lines • Show All 365 Lines • ▼ Show 20 Lines | class calendar_ui | ||||
* Render HTML form for alarm configuration | * Render HTML form for alarm configuration | ||||
*/ | */ | ||||
function alarm_select($attrib = array()) | function alarm_select($attrib = array()) | ||||
{ | { | ||||
return $this->cal->lib->alarm_select($attrib, $this->cal->driver->alarm_types, $this->cal->driver->alarm_absolute); | return $this->cal->lib->alarm_select($attrib, $this->cal->driver->alarm_types, $this->cal->driver->alarm_absolute); | ||||
} | } | ||||
/** | /** | ||||
* | * Render HTML for attendee notification warning | ||||
*/ | */ | ||||
function edit_attendees_notify($attrib = array()) | function edit_attendees_notify($attrib = array()) | ||||
{ | { | ||||
$checkbox = new html_checkbox(array('name' => '_notify', 'id' => 'edit-attendees-donotify', 'value' => 1)); | $checkbox = new html_checkbox(array('name' => '_notify', 'id' => 'edit-attendees-donotify', 'value' => 1)); | ||||
return html::div($attrib, html::label(null, $checkbox->show(1) . ' ' . $this->cal->gettext('sendnotifications'))); | return html::div($attrib, html::label(null, $checkbox->show(1) . ' ' . $this->cal->gettext('sendnotifications'))); | ||||
} | } | ||||
/** | /** | ||||
* Render HTML for recurrence option to align start date with the recurrence rule | |||||
*/ | |||||
function edit_recurrence_sync($attrib = array()) | |||||
{ | |||||
$checkbox = new html_checkbox(array('name' => '_start_sync', 'value' => 1)); | |||||
return html::div($attrib, html::label(null, $checkbox->show(1) . ' ' . $this->cal->gettext('eventstartsync'))); | |||||
} | |||||
/** | |||||
* Generate the form for recurrence settings | * Generate the form for recurrence settings | ||||
*/ | */ | ||||
function recurring_event_warning($attrib = array()) | function recurring_event_warning($attrib = array()) | ||||
{ | { | ||||
$attrib['id'] = 'edit-recurring-warning'; | $attrib['id'] = 'edit-recurring-warning'; | ||||
$radio = new html_radiobutton(array('name' => '_savemode', 'class' => 'edit-recurring-savemode')); | $radio = new html_radiobutton(array('name' => '_savemode', 'class' => 'edit-recurring-savemode')); | ||||
$form = html::label(null, $radio->show('', array('value' => 'current')) . $this->cal->gettext('currentevent')) . ' ' . | $form = html::label(null, $radio->show('', array('value' => 'current')) . $this->cal->gettext('currentevent')) . ' ' . | ||||
▲ Show 20 Lines • Show All 391 Lines • Show Last 20 Lines |