2015-06-10 23:51:28 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Egroupware
|
|
|
|
@license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
2016-06-27 11:39:25 +02:00
|
|
|
@package
|
|
|
|
@subpackage
|
2015-06-10 23:51:28 +02:00
|
|
|
@link http://www.egroupware.org
|
|
|
|
@author Nathan Gray
|
|
|
|
@version $Id$
|
|
|
|
-->
|
|
|
|
|
2017-02-01 09:59:37 +01:00
|
|
|
<!DOCTYPE overlay PUBLIC '-//EGroupware GmbH//eTemplate 2//EN' 'http://www.egroupware.org/etemplate2.dtd'>
|
2015-06-10 23:51:28 +02:00
|
|
|
|
|
|
|
<overlay>
|
|
|
|
<template id="calendar.sidebox">
|
|
|
|
<vbox parent_node="calendar-et2_target">
|
2022-04-28 23:45:59 +02:00
|
|
|
<calendar-date id="date" onchange="var view_change = app.calendar.sidebox_changes_views.indexOf(app.calendar.state.view);
|
2022-04-26 23:27:49 +02:00
|
|
|
var update = {date:widget.getValue()};
|
|
|
|
if(view_change >= 0) {update.view = app.calendar.sidebox_changes_views[view_change ? view_change - 1 : view_change];} else if (app.calendar.state.view == 'listview') {update.filter = 'after';} else if (app.calendar.state.view =='planner') { update.planner_view = 'day'; } app.calendar.update_state(update);">
|
2022-04-28 23:45:59 +02:00
|
|
|
<et2-button id="header_today" label="•" statustext="Today" icon="nope" onclick="
|
2015-12-22 21:07:40 +01:00
|
|
|
var tempDate = new Date();
|
|
|
|
var today = new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate(),0,-tempDate.getTimezoneOffset(),0);
|
|
|
|
var change = {date: today.toJSON()};
|
2016-05-04 19:11:11 +02:00
|
|
|
app.calendar.update_state(change);
|
|
|
|
widget.getRoot().getWidgetById('date').set_value(today);
|
|
|
|
return false;"/>
|
2022-04-28 23:45:59 +02:00
|
|
|
<et2-button id="header_go" label="↵" icon="nope"
|
|
|
|
onclick="var change = {date: widget.getAttribute('data-date')}; if ( app.calendar.state.view == 'listview') {change.filter='month';} else if (app.calendar.state.view == 'planner') {} else {change.view = 'month';}app.calendar.update_state(change);"/>
|
2022-04-26 23:27:49 +02:00
|
|
|
|
|
|
|
</calendar-date>
|
2021-12-01 18:32:32 +01:00
|
|
|
<textbox type="hidden" id="first"/>
|
|
|
|
<textbox type="hidden" id="last"/>
|
|
|
|
<hrule/>
|
|
|
|
<select-cat id="cat_id" empty_label="All categories" width="86%"
|
|
|
|
onchange="app.calendar.update_state({cat_id: widget.getValue()});" expand_multiple_rows="4"/>
|
|
|
|
<select id="status_filter" no_lang="true" class="et2_fullWidth"
|
|
|
|
onchange="app.calendar.update_state({status_filter: widget.getValue()});"/>
|
|
|
|
<hrule/>
|
|
|
|
<calendar-owner id="owner" class="et2_fullWidth"
|
|
|
|
onchange="app.calendar.update_state({owner: widget.getValue()}); return false;"
|
|
|
|
multiple="true" allowFreeEntries="false"
|
|
|
|
autocomplete_params="{"checkgrants": true}"/>
|
|
|
|
<hrule/>
|
|
|
|
<select id="merge" empty_label="Insert in document" onchange="app.calendar.sidebox_merge"
|
|
|
|
class="et2_fullWidth"/>
|
|
|
|
<box>
|
|
|
|
<grid id="integration" disabled="!@integration" width="100%">
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
</columns>
|
|
|
|
<rows>
|
|
|
|
<row>
|
|
|
|
<template id="$row_cont[template]" width="100%" content="$row_cont[app]"/>
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
</box>
|
|
|
|
</vbox>
|
|
|
|
<iframe id="iframe" width="100%" height="100%"/>
|
|
|
|
<styles>
|
|
|
|
#calendar-sidebox_integration: {
|
|
|
|
display: table;
|
|
|
|
width: 100%
|
|
|
|
}
|
|
|
|
</styles>
|
|
|
|
</template>
|
2022-03-12 13:49:25 +01:00
|
|
|
</overlay>
|