2016-03-30 18:03:19 +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
|
2024-11-23 08:28:34 +01:00
|
|
|
@link https://www.egroupware.org
|
2016-03-30 18:03:19 +02:00
|
|
|
@author Nathan Gray
|
|
|
|
-->
|
|
|
|
|
2023-01-04 18:28:10 +01:00
|
|
|
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2.0//EN" "https://www.egroupware.org/etemplate2.0.dtd">
|
2016-03-30 18:03:19 +02:00
|
|
|
|
|
|
|
<overlay>
|
|
|
|
<template id="calendar.view">
|
2023-01-04 18:28:10 +01:00
|
|
|
<et2-label id="header_dateIndicator"></et2-label>
|
2016-03-30 18:03:19 +02:00
|
|
|
<grid id="view" width="100%">
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
</columns>
|
|
|
|
<rows>
|
|
|
|
<row class="view_row">
|
|
|
|
<calendar-timegrid id="${row}"
|
2024-11-23 08:28:34 +01:00
|
|
|
onchange="var state = {}; if(widget.options.start_date == widget.options.end_date) state.view = 'day'; app.calendar.update_state(state);let s = widget.getInstanceManager().app_obj.calendar.state;let d = new Date(s.date); import(egw.link('/api/js/etemplate/lib/date.js')).then((m)=>{const date=m.date; widget.getInstanceManager().widgetContainer.getWidgetById('header_dateIndicator').set_value((s.view == 'day'?date('d', d)+'-':'')+egw.lang(date('M',d))+'-'+date('Y',d));});"
|
2016-03-30 18:03:19 +02:00
|
|
|
onevent_change="app.calendar.event_change"
|
|
|
|
>
|
|
|
|
</calendar-timegrid>
|
|
|
|
</row>
|
|
|
|
|
|
|
|
</rows>
|
|
|
|
</grid>
|
2023-01-04 18:28:10 +01:00
|
|
|
<et2-button class="plus_button" id="add" onclick="egw.open(null,'calendar','add')"></et2-button>
|
2016-03-30 18:03:19 +02:00
|
|
|
</template>
|
2023-01-04 18:28:10 +01:00
|
|
|
</overlay>
|