summaryrefslogtreecommitdiffstats
path: root/comm/calendar/base/content/item-editing/calendar-item-panel.inc.xhtml
blob: c567053ee6ece4b6ecbcec7cbabedefeb5dbdd22 (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
# 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/.

# This file requires the following localization files:
# chrome://calendar/locale/global.dtd
# chrome://calendar/locale/calendar.dtd
# chrome://calendar/locale/calendar-event-dialog.dtd
# chrome://lightning/locale/lightning-toolbar.dtd

    <vbox id="calendarItemPanel" collapsed="true">

      <!-- The id of the inner vbox and the iframe are set dynamically
           when a tab is created. -->
      <vbox flex="1"
            id="dummy-calendar-event-dialog-tab"
            class="calendar-event-dialog-tab">

        <!-- Commands -->
        <commandset id="itemCommands">
          <command id="cmd_save"
                   disable-on-readonly="true"
                   oncommand="onCommandSave()"/>
          <command id="cmd_item_delete"
                   disable-on-readonly="true"
                   oncommand="onCommandDeleteItem()"/>

          <!-- View menu -->
          <command id="cmd_customize"
                   oncommand="onCommandCustomize()"/>

          <!-- status -->
          <command id="cmd_status_none"
                   oncommand="editStatus(event.target)"
                   hidden="true"
                   value="NONE"/>
          <command id="cmd_status_tentative"
                   oncommand="editStatus(event.target)"
                   value="TENTATIVE"/>
          <command id="cmd_status_confirmed"
                   oncommand="editStatus(event.target)"
                   value="CONFIRMED"/>
          <command id="cmd_status_cancelled"
                   oncommand="editStatus(event.target)"
                   value="CANCELLED"/>

          <!-- priority -->
          <command id="cmd_priority_none"
                   oncommand="editPriority(event.target)"
                   value="0"/>
          <command id="cmd_priority_low"
                   oncommand="editPriority(event.target)"
                   value="9"/>
          <command id="cmd_priority_normal"
                   oncommand="editPriority(event.target)"
                   value="5"/>
          <command id="cmd_priority_high"
                   oncommand="editPriority(event.target)"
                   value="1"/>

          <!-- freebusy -->
          <command id="cmd_showtimeas_busy"
                   oncommand="editShowTimeAs(event.target)"
                   value="OPAQUE"/>
          <command id="cmd_showtimeas_free"
                   oncommand="editShowTimeAs(event.target)"
                   value="TRANSPARENT"/>

          <!-- attendees -->
          <command id="cmd_attendees"
                   oncommand="editAttendees();"/>

          <!-- accept, attachments, timezone -->
          <command id="cmd_accept"
                   disable-on-readonly="true"
                   oncommand="sendMessage({ command: 'onAccept' });"/>
          <command id="cmd_attach_url"
                   disable-on-readonly="true"
                   oncommand="attachURL()"/>
          <command id="cmd_attach_cloud"
                   disable-on-readonly="true"/>
          <command id="cmd_timezone"
                   persist="checked"
                   checked="false"
                   oncommand="toggleTimezoneLinks()"/>
        </commandset>

        <keyset id="calendar-event-dialog-keyset">
          <key id="save-key"
               modifiers="accel, shift"
               key="&event.dialog.save.key;"
               command="cmd_save"/>
          <key id="saveandclose-key"
               modifiers="accel"
               key="&event.dialog.saveandclose.key;"
               command="cmd_accept"/>
          <key id="saveandclose-key2"
               modifiers="accel"
               keycode="VK_RETURN"
               command="cmd_accept"/>
        </keyset>

        <toolbox id="event-toolbox"
                 class="mail-toolbox"
                 mode="full"
                 defaultmode="full"
                 iconsize="small"
                 defaulticonsize="small"
                 labelalign="end"
                 defaultlabelalign="end">
          <toolbarpalette id="event-toolbarpalette">
#include calendar-item-toolbar.inc.xhtml
          </toolbarpalette>
          <!-- toolboxid is set here since we move the toolbar around for tabs -->
          <toolbar is="customizable-toolbar" id="event-tab-toolbar"
                   toolbarname="&event.menu.view.toolbars.event.label;"
                   accesskey="&event.menu.view.toolbars.event.accesskey;"
                   toolboxid="event-toolbox"
                   class="chromeclass-toolbar inline-toolbar themeable-full"
                   customizable="true"
                   labelalign="end"
                   defaultlabelalign="end"
                   context="event-dialog-toolbar-context-menu"
                   defaultset="button-saveandclose,button-attendees,button-privacy,button-url,button-priority,button-status,button-freebusy,button-delete,spring"/>
        </toolbox>

        <iframe id="calendar-item-panel-iframe" flex="1"/>

      </vbox>
    </vbox>