зеркало из https://github.com/mozilla/pjs.git
201 строка
6.5 KiB
XML
201 строка
6.5 KiB
XML
<?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"?>
|
|
<?xml-stylesheet href="chrome://calendar/content/datetimepickers/datetimepickers.css" ?>
|
|
|
|
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
|
|
|
|
<dialog
|
|
id="calendar-recurrence-dialog"
|
|
title="Edit Recurrence"
|
|
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/calendar-dialog-utils.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="Occurs"/>
|
|
<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">
|
|
<label value="Every"/>
|
|
<textbox id="daily-days" size="3"/>
|
|
<label value="days"/>
|
|
<spacer flex="1"/>
|
|
</hbox>
|
|
|
|
<!-- Weekly -->
|
|
<hbox>
|
|
<label value="On:"/>
|
|
<vbox>
|
|
<checkbox id="weekly-mon" label="Monday" value="2"/>
|
|
<checkbox id="weekly-tue" label="Tuesday" value="3"/>
|
|
<checkbox id="weekly-wed" label="Wednesday" value="4"/>
|
|
<checkbox id="weekly-thu" label="Thursday" value="5"/>
|
|
</vbox>
|
|
<vbox>
|
|
<checkbox id="weekly-fri" label="Friday" value="6"/>
|
|
<checkbox id="weekly-sat" label="Saturday" value="7"/>
|
|
<checkbox id="weekly-sun" label="Sunday" value="1"/>
|
|
</vbox>
|
|
</hbox>
|
|
|
|
<vbox align="center">
|
|
<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>
|
|
<label value="Repeat on the"/>
|
|
<textbox value="10,23,29" size="3"/>
|
|
</hbox>
|
|
</vbox>
|
|
|
|
<hbox align="top">
|
|
<label value="Every"/>
|
|
<textbox id="yearly-years" size="3"/>
|
|
<label value="years"/>
|
|
<spacer flex="1"/>
|
|
</hbox>
|
|
|
|
</deck>
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
</vbox>
|
|
|
|
<spacer flex="1"/>
|
|
|
|
<vbox>
|
|
<radiogroup id="recurrence-duration" oncommand="updateDuration()">
|
|
<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>
|
|
<textbox id="repeat-ntimes-count" size="3"/>
|
|
<spacer flex="0.5"/>
|
|
<menulist id="repeat-ntimes-units">
|
|
<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>
|
|
<datepicker id="repeat-until-date" value=""/>
|
|
<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>
|