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
|
|
|
|
@package
|
|
|
|
@subpackage
|
|
|
|
@link http://www.egroupware.org
|
|
|
|
@author Nathan Gray
|
|
|
|
@version $Id$
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!DOCTYPE overlay PUBLIC '-//Stylite AG//eTemplate 2//EN' 'http://www.egroupware.org/etemplate2.dtd'>
|
|
|
|
|
|
|
|
<overlay>
|
|
|
|
<template id="calendar.sidebox">
|
|
|
|
<vbox parent_node="calendar-et2_target">
|
|
|
|
<grid id="buttons" width="100%">
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
|
|
|
<column/>
|
2015-11-06 01:37:23 +01:00
|
|
|
<column/>
|
2015-06-10 23:51:28 +02:00
|
|
|
</columns>
|
|
|
|
<rows><row width="100%">
|
|
|
|
<buttononly align="center" class="sideboxstar" id="add" onclick="egw.open(null,'calendar','add');" image="new" label="Add"/>
|
2015-11-05 22:52:43 +01:00
|
|
|
<buttononly align="center" class="sideboxstar" id="day" image="day" label="Day view" onclick="app.calendar.update_state({view:'day'});"/>
|
2015-06-10 23:51:28 +02:00
|
|
|
<buttononly align="center" class="sideboxstar" id="week" image="week" label="Weekview" onclick="app.calendar.update_state({view:'week'});"/>
|
|
|
|
<buttononly align="center" class="sideboxstar" id="weekN" image="multiweek" label="Multiple week view" onclick="app.calendar.update_state({view:'weekN'});"/>
|
2015-07-01 00:26:59 +02:00
|
|
|
<buttononly align="center" class="sideboxstar" id="month" image="month" label="Month view" onclick="app.calendar.update_state({view:'month'});"/>
|
2015-06-25 19:44:28 +02:00
|
|
|
<buttononly align="center" class="sideboxstar" id="planner" image="planner" label="Group planner" onclick="app.calendar.update_state({view:'planner',planner_days:0});"/>
|
2015-06-10 23:51:28 +02:00
|
|
|
<buttononly align="center" class="sideboxstar" id="listview" image="list" label="Listview" onclick="app.calendar.update_state({view:'listview'});"/>
|
2015-11-18 16:42:32 +01:00
|
|
|
<checkbox class="sideboxstar" id="weekend" toggle_on="7" toggle_off="5" statustext="Toggle weekend" onchange="app.calendar.update_state({weekend: widget.getValue()}); return false;"/>
|
2015-06-10 23:51:28 +02:00
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
<select id="view" class="et2_fullWidth" onchange="app.calendar.update_state(JSON.parse(widget.getValue()));"/>
|
2015-12-14 20:32:04 +01:00
|
|
|
<textbox id="keywords" class="et2_fullWidth" blur="Search" onchange="app.calendar.update_state({view: 'listview',keywords: widget.getValue()});window.setTimeout(function() {widget.set_value('');},100);return false;"/>
|
2015-12-02 00:49:14 +01:00
|
|
|
<hbox id="date_header" class="et2_fullWidth">
|
|
|
|
<buttononly id="header_today" label="Today" onclick="var tempDate = new Date();
|
|
|
|
var today = new Date(tempDate.getFullYear(), tempDate.getMonth(), tempDate.getDate(),0,-tempDate.getTimezoneOffset(),0);
|
|
|
|
app.calendar.update_state({date: today.toJSON()});return false;"/>
|
2015-12-03 21:51:55 +01:00
|
|
|
<buttononly id="header_month" label="Month" onclick="app.calendar.update_state({date: widget.btn.attr('data-date'), view:'month'});" />
|
2015-12-02 00:49:14 +01:00
|
|
|
</hbox>
|
2015-09-14 22:47:25 +02:00
|
|
|
<date id="date" class="et2_fullWidth" inline="true" onchange="var view_change = app.calendar.sidebox_changes_views.indexOf(app.calendar.state.view);
|
|
|
|
var update = {date:widget.getValue()};
|
|
|
|
if(view_change >= 0) {update.view = app.calendar.sidebox_changes_views[view_change ? view_change - 1 : view_change]}; app.calendar.update_state(update);"/>
|
2015-06-15 23:38:03 +02:00
|
|
|
<textbox type="hidden" id="first"/>
|
|
|
|
<textbox type="hidden" id="last"/>
|
2015-10-14 16:32:33 +02:00
|
|
|
<select-cat id="cat_id" empty_label="All categories" width="86%" onchange="app.calendar.update_state({cat_id: widget.getValue()});" expand_multiple_rows="4"/>
|
2015-07-15 18:29:10 +02:00
|
|
|
<select-account id="owner" class="et2_fullWidth" onchange="app.calendar.update_state({owner: widget.getValue()});" expand_multiple_rows="4" account_type="both"/>
|
2015-06-10 23:51:28 +02:00
|
|
|
|
|
|
|
<!--
|
|
|
|
<taglist id="owner" class="et2_fullWidth" onchange="app.calendar.update_state({owner: widget.getValue()});" autocomplete_params=''/>
|
|
|
|
-->
|
|
|
|
<select id="filter" no_lang="true" class="et2_fullWidth" onchange="app.calendar.update_state({filter: widget.getValue()});"/>
|
2015-11-17 17:57:34 +01:00
|
|
|
<select id="merge" empty_label="Insert in document" onchange="if(widget.getValue()) {widget.getRoot().getWidgetById('first').set_value(app.calendar.state.first);widget.getRoot().getWidgetById('last').set_value(app.calendar.state.last); widget.getInstanceManager().postSubmit();} window.setTimeout(function() {widget.set_value('');},100);return false;" class="et2_fullWidth"/>
|
2015-06-10 23:51:28 +02:00
|
|
|
</vbox>
|
2015-06-15 23:38:03 +02:00
|
|
|
<iframe id="iframe" width="100%" height="100%"/>
|
2015-06-10 23:51:28 +02:00
|
|
|
</template>
|
|
|
|
</overlay>
|