summaryrefslogtreecommitdiffstats
path: root/comm/calendar/base/content/dialogs/calendar-summary-dialog.xhtml
blob: d3bfe394fcccd621d3645b5bbed00108785f99b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet type="text/css" href="chrome://messenger/skin/messenger.css"?>
<?xml-stylesheet type="text/css" href="chrome://calendar/skin/shared/calendar-alarms.css"?>
<?xml-stylesheet type="text/css" href="chrome://calendar/skin/shared/calendar-attendees.css"?>
<?xml-stylesheet type="text/css" href="chrome://messenger/skin/input-fields.css"?>
<?xml-stylesheet type="text/css" href="chrome://calendar/skin/calendar-event-dialog.css"?>
<?xml-stylesheet type="text/css" href="chrome://calendar/skin/shared/dialogs/calendar-event-dialog.css"?>
<?xml-stylesheet type="text/css" href="chrome://messenger/skin/primaryToolbar.css"?>
<?xml-stylesheet type="text/css" href="chrome://calendar/skin/shared/calendar-item-summary.css"?>
<?xml-stylesheet type="text/css" href="chrome://messenger/skin/contextMenu.css"?>
<?xml-stylesheet type="text/css" href="chrome://messenger/skin/colors.css"?>
<?xml-stylesheet type="text/css" href="chrome://messenger/skin/themeableDialog.css"?>
<?xml-stylesheet type="text/css" href="chrome://calendar/skin/shared/dialogs/calendar-summary-dialog.css"?>

<!DOCTYPE html [ <!ENTITY % globalDTD SYSTEM "chrome://calendar/locale/global.dtd">
<!ENTITY % calendarDTD SYSTEM "chrome://calendar/locale/calendar.dtd" >
<!ENTITY % dialogDTD SYSTEM "chrome://calendar/locale/calendar-event-dialog.dtd" >
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
%globalDTD; %calendarDTD; %dialogDTD; %brandDTD; ]>
<html
  id="calendar-summary-dialog"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml"
  icon="calendar-general-dialog"
  windowtype="Calendar:EventSummaryDialog"
  lightweightthemes="true"
  persist="screenX screenY"
  scrolling="false"
>
  <head>
    <title><!-- item title --></title>
    <link rel="localization" href="toolkit/global/textActions.ftl" />
    <link rel="localization" href="calendar/calendar-summary-dialog.ftl" />
    <link rel="localization" href="calendar/calendar-editable-item.ftl" />
    <script defer="defer" src="chrome://messenger/content/globalOverlay.js"></script>
    <script defer="defer" src="chrome://global/content/editMenuOverlay.js"></script>
    <script defer="defer" src="chrome://calendar/content/calendar-dialog-utils.js"></script>
    <script defer="defer" src="chrome://calendar/content/calendar-ui-utils.js"></script>
    <script defer="defer" src="chrome://calendar/content/calendar-item-editing.js"></script>
    <script defer="defer" src="chrome://calendar/content/calApplicationUtils.js"></script>
    <script defer="defer" src="chrome://calendar/content/widgets/calendar-item-summary.js"></script>
    <script defer="defer" src="chrome://calendar/content/calendar-summary-dialog.js"></script>
  </head>
  <html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    <dialog buttons=",">
      <toolbox
        id="summary-toolbox"
        class="mail-toolbox"
        mode="full"
        defaultmode="full"
        iconsize="small"
        defaulticonsize="small"
        labelalign="end"
        defaultlabelalign="end"
      >
        <toolbar
          id="summary-toolbar"
          toolboxid="summary-toolbox"
          class="chromeclass-toolbar themeable-full"
          customizable="false"
          labelalign="end"
          defaultlabelalign="end"
        >
          <toolbarbutton
            id="saveandcloseButton"
            tooltiptext="&summary.dialog.saveclose.tooltiptext;"
            label="&summary.dialog.saveclose.label;"
            oncommand="saveAndClose('NONE');"
            class="cal-event-toolbarbutton toolbarbutton-1 saveandcloseButton"
          />
          <toolbarbutton
            is="toolbarbutton-menu-button"
            id="acceptButton"
            type="menu"
            tooltiptext="&summary.dialog.accept.tooltiptext;"
            label="&summary.dialog.accept.label;"
            oncommand="reply('AUTO', 'ACCEPTED');"
            class="cal-event-toolbarbutton toolbarbutton-1 replyButton"
          >
            <menupopup id="acceptDropdown">
              <menuitem
                id="acceptButton_Send"
                tooltiptext="&summary.dialog.send.tooltiptext;"
                label="&summary.dialog.send.label;"
                oncommand="reply('AUTO', 'ACCEPTED'); event.stopPropagation();"
              />
              <menuitem
                id="acceptButton_DontSend"
                tooltiptext="&summary.dialog.dontsend.tooltiptext;"
                label="&summary.dialog.dontsend.label;"
                oncommand="reply('NONE', 'ACCEPTED'); event.stopPropagation();"
              />
            </menupopup>
          </toolbarbutton>
          <toolbarbutton
            is="toolbarbutton-menu-button"
            id="tentativeButton"
            type="menu"
            tooltiptext="&summary.dialog.tentative.tooltiptext;"
            label="&summary.dialog.tentative.label;"
            oncommand="reply('AUTO', 'TENTATIVE');"
            class="cal-event-toolbarbutton toolbarbutton-1 replyButton"
          >
            <menupopup id="tentativeDropdown">
              <menuitem
                id="tenatativeButton_Send"
                tooltiptext="&summary.dialog.send.tooltiptext;"
                label="&summary.dialog.send.label;"
                oncommand="reply('AUTO', 'TENTATIVE'); event.stopPropagation();"
              />
              <menuitem
                id="tenativeButton_DontSend"
                tooltiptext="&summary.dialog.dontsend.tooltiptext;"
                label="&summary.dialog.dontsend.label;"
                oncommand="reply('NONE', 'TENTATIVE'); event.stopPropagation();"
              />
            </menupopup>
          </toolbarbutton>
          <toolbarbutton
            is="toolbarbutton-menu-button"
            id="declineButton"
            type="menu"
            tooltiptext="&summary.dialog.decline.tooltiptext;"
            label="&summary.dialog.decline.label;"
            oncommand="reply('AUTO', 'DECLINED');"
            class="cal-event-toolbarbutton toolbarbutton-1 replyButton"
          >
            <menupopup id="declineDropdown">
              <menuitem
                id="declineButton_Send"
                tooltiptext="&summary.dialog.send.tooltiptext;"
                label="&summary.dialog.send.label;"
                oncommand="reply('AUTO', 'DECLINED'); event.stopPropagation();"
              />
              <menuitem
                id="declineButton_DontSend"
                tooltiptext="&summary.dialog.dontsend.tooltiptext;"
                label="&summary.dialog.dontsend.label;"
                oncommand="reply('NONE', 'DECLINED'); event.stopPropagation();"
              />
            </menupopup>
          </toolbarbutton>
        </toolbar>
      </toolbox>

      <vbox id="status-notifications">
        <!-- notificationbox will be added here lazily. -->
      </vbox>
      <calendar-item-summary id="calendar-item-summary" flex="1" />

      <!-- LOCATION LINK CONTEXT MENU -->
      <menupopup id="location-link-context-menu">
        <menuitem
          id="location-link-context-menu-copy"
          label="&calendar.copylink.label;"
          accesskey="&calendar.copylink.accesskey;"
          oncommand="locationCopyLink(this.parentNode.triggerNode)"
        />
      </menupopup>
      <!-- ATTENDEES CONTEXT MENU -->
      <menupopup id="attendee-popup">
        <menu id="attendee-popup-copy-menu" data-l10n-id="text-action-copy">
          <menupopup>
            <menuitem
              id="attendee-popup-copy-menu-common-name"
              oncommand="copyLabelToClipboard(event)"
            />
            <menuitem id="attendee-popup-copy-menu-id" oncommand="copyLabelToClipboard(event)" />
          </menupopup>
        </menu>
        <menuitem
          id="attendee-popup-sendemail"
          label="&event.email.attendees.label;"
          accesskey="&event.email.attendees.accesskey;"
          oncommand="sendMailToAttendees()"
        />
      </menupopup>
      <menupopup id="description-popup" onpopupshowing="goUpdateGlobalEditMenuItems(true);">
        <menuitem data-l10n-id="text-action-copy" command="cmd_copy" />
        <menuitem
          id="description-context-menu-copy-link-location"
          label="&calendar.copylink.label;"
          accesskey="&calendar.copylink.accesskey;"
          oncommand="goDoCommand('cmd_copyLink')"
        />
        <menuitem
          id="description-context-menu-copy-link-text"
          data-l10n-id="description-context-menu-copy-link-text"
          oncommand="copyLinkTextToClipboard(event)"
        />
        <menuseparator id="calendar-summary-description-context-menuseparator" />
        <menuitem data-l10n-id="text-action-select-all" command="cmd_selectAll" />
      </menupopup>
      <hbox id="calendar-summary-dialog-custom-button-footer" hidden="true">
        <spacer class="button-spacer" flex="1" />

        <button
          id="calendar-summary-dialog-edit-button"
          default="true"
          dlgtype="accept"
          hidden="true"
          data-l10n-id="calendar-summary-dialog-edit-button"
        />

        <button
          id="calendar-summary-dialog-edit-menu-button"
          type="menu"
          hidden="true"
          data-l10n-id="calendar-summary-dialog-edit-menu-button"
        >
          <menupopup id="edit-button-context-menu">
            <menuitem
              id="edit-button-context-menu-this-occurrence"
              data-l10n-id="edit-button-context-menu-this-occurrence"
              oncommand="onEditThisOccurrence()"
            />
            <menuitem
              id="edit-button-context-menu-all-occurrences"
              data-l10n-id="edit-button-context-menu-all-occurrences"
              oncommand="onEditAllOccurrences()"
            />
          </menupopup>
        </button>
      </hbox>
    </dialog>
  </html:body>
</html>