egroupware_official/calendar/templates/default/freetimesearch.xet
Ralf Becker 977c0bf482 * Calendar: fixed freetime search to correctly read and set times from edit window
- fixed et2_date.set_value() to understand nummeric timestamps in usertime used on server-side (needed timezone offset)
- added new parameter-type for et2_date.set_value() string starting with + or - to add or subtract given number of seconds from current time (to not have to code that in applications)
r48463: some styling for freetime search
2014-09-04 14:34:06 +00:00

81 lines
2.6 KiB
XML

<?xml version="1.0"?>
<!-- $Id$ -->
<overlay>
<template id="calendar.freetimesearch.rows" template="" lang="" group="0" version="1.0.1.001">
<grid>
<columns>
<column/>
<column/>
<column/>
<column/>
</columns>
<rows>
<row class="th">
<description value="Date"/>
<description value="Time"/>
<description value="Select"/>
<description value="Enddate"/>
</row>
<row class="row">
<date options=",16" id="${row}[start]" readonly="true"/>
<menulist>
<menupopup no_lang="1" id="{$row}start" statustext="select a time"/>
</menulist>
<button label="Select" id="select[$row]" statustext="use the selected time and close the popup" onclick="app.calendar.freetime_select" />
<date-time id="${row}[end]" readonly="true"/>
</row>
</rows>
</grid>
</template>
<template id="calendar.freetimesearch" template="" lang="" group="0" version="1.3.001">
<grid>
<columns>
<column/>
<column/>
</columns>
<rows>
<row class="dialogHeader">
<description class="calendar_freetime_header" value="Freetime Search" span="all"/>
</row>
<row >
<description value="Startdate / -time"/>
<date-time id="start" statustext="Startdate and -time of the search"/>
</row>
<row>
<description value="Duration"/>
<hbox>
<menulist>
<menupopup no_lang="1" id="duration" statustext="Duration of the meeting" onchange="app.calendar.set_enddate_visibility" options="Use end date"/>
</menulist>
<date-time id="end" statustext="Enddate / -time of the meeting, eg. for more then one day"/>
</hbox>
</row>
<row>
<description value="Timeframe"/>
<hbox class="calendar_freetime_timeframe">
<date-timeonly id="start_time" statustext="Timeframe to search"/>
<description value="til"/>
<date-timeonly id="end_time" statustext="Timeframe to search"/>
<description value="Weekdays"/>
<select-dow rows="10" id="weekdays" statustext="Weekdays to use in search" class="calendar_freetime_dow"/>
</hbox>
</row>
<row>
<button label="New search" id="search" statustext="new search with the above parameters"/>
<hbox>
<menulist>
<menupopup no_lang="1" id="search_window" statustext="how far to search (from startdate)"/>
</menulist>
<button id="cancel" label="Cancel" statustext="Close the window" onclick="window.close();"/>
</hbox>
</row>
<row>
<template content="freetime" span="all" id="calendar.freetimesearch.rows"/>
</row>
</rows>
</grid>
<styles>
body { background-color: white; }
</styles>
</template>
</overlay>