2005-05-31 21:42:21 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!-- -*- Mode: xml; indent-tabs-mode: nil; -*- -->
|
|
|
|
<!--
|
|
|
|
- ***** BEGIN LICENSE BLOCK *****
|
|
|
|
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
-
|
|
|
|
- The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
- 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
- the License. You may obtain a copy of the License at
|
|
|
|
- http://www.mozilla.org/MPL/
|
|
|
|
-
|
|
|
|
- Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
- for the specific language governing rights and limitations under the
|
|
|
|
- License.
|
|
|
|
-
|
|
|
|
- The Original Code is calendar views.
|
|
|
|
-
|
|
|
|
- The Initial Developer of the Original Code is Oracle Corporation
|
|
|
|
- Portions created by the Initial Developer are Copyright (C) 2005
|
|
|
|
- the Initial Developer. All Rights Reserved.
|
|
|
|
-
|
|
|
|
- Contributor(s):
|
|
|
|
- Stuart Parmenter <stuart.parmenter@oracle.com>
|
|
|
|
-
|
|
|
|
- Alternatively, the contents of this file may be used under the terms of
|
|
|
|
- either the GNU General Public License Version 2 or later (the "GPL"), or
|
|
|
|
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
- in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
- of those above. If you wish to allow use of your version of this file only
|
|
|
|
- under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
- use your version of this file under the terms of the MPL, indicate your
|
|
|
|
- decision by deleting the provisions above and replace them with the notice
|
|
|
|
- and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
- the provisions above, a recipient may use your version of this file under
|
|
|
|
- the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
-
|
|
|
|
- ***** END LICENSE BLOCK *****
|
|
|
|
-->
|
|
|
|
|
|
|
|
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
2005-05-31 23:02:47 +00:00
|
|
|
<?xml-stylesheet href="chrome://calendar/content/datetimepickers/datetimepickers.css" ?>
|
2005-05-31 21:42:21 +00:00
|
|
|
|
|
|
|
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
|
|
|
|
|
|
|
|
<dialog
|
|
|
|
id="calendar-recurrence-dialog"
|
|
|
|
title="Recurrence Event"
|
|
|
|
buttons="accept,cancel"
|
|
|
|
ondialogaccept="return onAccept();"
|
|
|
|
ondialogcancel="return onCancel();"
|
|
|
|
onload="onLoad()"
|
|
|
|
persist="screenX screenY"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
|
|
|
<script type="application/x-javascript" src="chrome://calendar/content/calendar-recurrence-dialog.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://calendar/content/calendarUtils.js"/>
|
|
|
|
|
|
|
|
<vbox>
|
|
|
|
|
|
|
|
<grid flex="1">
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
<column flex="1"/>
|
|
|
|
</columns>
|
|
|
|
|
|
|
|
<rows>
|
|
|
|
<row align="center">
|
|
|
|
<label value="Frequency"/>
|
|
|
|
<menulist id="period-list" oncommand="updateDeck();">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem label="Daily" value="0"/>
|
|
|
|
<menuitem label="Weekly" value="1"/>
|
|
|
|
<menuitem label="Monthly" value="2"/>
|
|
|
|
<menuitem label="Annually" value="3"/>
|
|
|
|
</menupopup>
|
|
|
|
</menulist>
|
|
|
|
</row>
|
|
|
|
|
|
|
|
<row>
|
|
|
|
<spacer/>
|
|
|
|
<deck id="period-deck">
|
|
|
|
|
|
|
|
<!-- Daily -->
|
|
|
|
<hbox align="top">
|
|
|
|
<textbox id="daily-days" width="30"/>
|
|
|
|
<label value="days"/>
|
|
|
|
</hbox>
|
|
|
|
|
|
|
|
<!-- Weekly -->
|
|
|
|
<vbox>
|
|
|
|
<menulist>
|
|
|
|
<menupopup>
|
|
|
|
<menuitem label="every"/>
|
|
|
|
<menuitem label="every first"/>
|
|
|
|
<menuitem label="every second"/>
|
|
|
|
<menuitem label="every third"/>
|
|
|
|
<menuitem label="every fourth"/>
|
|
|
|
<menuitem label="every fifth"/>
|
|
|
|
<menuitem label="every last"/>
|
|
|
|
</menupopup>
|
|
|
|
</menulist>
|
|
|
|
<hbox>
|
|
|
|
<vbox>
|
|
|
|
<checkbox label="Monday"/>
|
|
|
|
<checkbox label="Tuesday"/>
|
|
|
|
<checkbox label="Wednesday"/>
|
|
|
|
<checkbox label="Thursday"/>
|
|
|
|
</vbox>
|
|
|
|
<vbox>
|
|
|
|
<checkbox label="Friday"/>
|
|
|
|
<checkbox label="Saturday"/>
|
|
|
|
<checkbox label="Sunday"/>
|
|
|
|
</vbox>
|
|
|
|
</hbox>
|
|
|
|
</vbox>
|
|
|
|
|
|
|
|
<hbox align="center">
|
|
|
|
<label value="Repeat on the"/>
|
|
|
|
<textbox value="10,23,29" width="70"/>
|
|
|
|
</hbox>
|
|
|
|
|
|
|
|
<hbox align="top">
|
|
|
|
<textbox width="30"/>
|
|
|
|
<label value="years"/>
|
|
|
|
</hbox>
|
|
|
|
|
|
|
|
</deck>
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
</vbox>
|
|
|
|
|
|
|
|
<spacer flex="1"/>
|
|
|
|
|
|
|
|
<vbox>
|
|
|
|
<radiogroup id="recurrence-duration">
|
|
|
|
<grid flex="1">
|
|
|
|
<columns>
|
|
|
|
<column/>
|
|
|
|
<column flex="1"/>
|
|
|
|
</columns>
|
|
|
|
|
|
|
|
<rows equalsize="always">
|
|
|
|
<row align="center">
|
|
|
|
<radio label="Repeat forever" value="forever" selected="true"/>
|
|
|
|
<spacer/>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<radio label="Repeat for" value="ntimes"/>
|
|
|
|
<hbox>
|
2005-05-31 23:02:47 +00:00
|
|
|
<textbox id="repeat-ntimes-count" size="3"/>
|
2005-05-31 21:42:21 +00:00
|
|
|
<spacer flex="0.5"/>
|
|
|
|
<menulist>
|
|
|
|
<menupopup>
|
|
|
|
<menuitem label="day(s)"/>
|
|
|
|
<menuitem label="week(s)"/>
|
|
|
|
<menuitem label="month(s)"/>
|
|
|
|
<menuitem label="year(s)"/>
|
|
|
|
</menupopup>
|
|
|
|
</menulist>
|
|
|
|
<spacer flex="1"/>
|
|
|
|
</hbox>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<radio label="Repeat until" value="until"/>
|
|
|
|
<hbox>
|
2005-05-31 23:02:47 +00:00
|
|
|
<datepicker id="repeat-until-date" value=""/>
|
2005-05-31 21:42:21 +00:00
|
|
|
<spacer flex="1"/>
|
|
|
|
</hbox>
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
</radiogroup>
|
|
|
|
</vbox>
|
|
|
|
|
|
|
|
<spacer flex="1"/>
|
|
|
|
|
|
|
|
<vbox>
|
|
|
|
<label value="Exceptions:"/>
|
|
|
|
|
|
|
|
<hbox align="center">
|
|
|
|
<listbox id="recurrence-dates-listbox" rows="8" flex="1"/>
|
|
|
|
<vbox>
|
|
|
|
<button label="Add..."/>
|
|
|
|
<button label="Remove"/>
|
|
|
|
</vbox>
|
|
|
|
</hbox>
|
|
|
|
|
|
|
|
</vbox>
|
|
|
|
|
|
|
|
|
|
|
|
</dialog>
|