summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/addrbook/content/abEditListDialog.xhtml
blob: bf775c274b031b374ae03fd6bee724b8b4e172dc (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
<?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 href="chrome://messenger/skin/addressbook/cardDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/input-fields.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/shared/grid-layout.css" type="text/css"?>

<!DOCTYPE window SYSTEM "chrome://messenger/locale/addressbook/abMailListDialog.dtd">

<window
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml"
  title="&mailListWindowAdd.title;"
  onload="OnLoadEditList();"
  ondragover="DragOverAddressListTree(event);"
  ondrop="DropOnAddressListTree(event);"
>
  <dialog id="ablistWindow">
    <script src="chrome://messenger/content/globalOverlay.js" />
    <script src="chrome://global/content/editMenuOverlay.js" />
    <!-- move needed functions into a single js file -->
    <script src="chrome://messenger/content/addressbook/abCommon.js" />
    <script src="chrome://messenger/content/addressbook/abMailListDialog.js" />

    <vbox id="editlist">
      <html:div class="grid-two-column-fr grid-items-center">
        <label
          control="ListName"
          value="&ListName.label;"
          accesskey="&ListName.accesskey;"
          class="CardEditLabel"
        />
        <hbox class="CardEditWidth input-container">
          <html:input id="ListName" type="text" class="input-inline" />
        </hbox>
        <label
          control="ListNickName"
          value="&ListNickName.label;"
          accesskey="&ListNickName.accesskey;"
          class="CardEditLabel"
        />
        <hbox class="CardEditWidth input-container">
          <html:input id="ListNickName" type="text" class="input-inline" />
        </hbox>
        <label
          control="ListDescription"
          value="&ListDescription.label;"
          accesskey="&ListDescription.accesskey;"
          class="CardEditLabel"
        />
        <hbox class="CardEditWidth input-container">
          <html:input id="ListDescription" type="text" class="input-inline" />
        </hbox>
      </html:div>

      <spacer style="height: 1em" />
      <label
        control="addressCol1#1"
        value="&AddressTitle.label;"
        accesskey="&AddressTitle.accesskey;"
      />
      <spacer style="height: 0.1em" />

      <richlistbox
        id="addressingWidget"
        onclick="awClickEmptySpace(event.target, true)"
      >
        <richlistitem class="addressingWidgetItem" allowevents="true">
          <hbox
            class="addressingWidgetCell input-container"
            flex="1"
            role="combobox"
          >
            <html:label for="addressCol1#1" class="person-icon"></html:label>
            <html:input
              is="autocomplete-input"
              id="addressCol1#1"
              class="plain textbox-addressingWidget uri-element"
              aria-labelledby="addressCol1#1"
              autocompletesearch="addrbook ldap"
              autocompletesearchparam="{}"
              timeout="300"
              maxrows="4"
              completedefaultindex="true"
              forcecomplete="true"
              completeselectedindex="true"
              minresultsforpopup="3"
              onkeypress="awAbRecipientKeyPress(event, this);"
              onkeydown="awRecipientKeyDown(event, this);"
            />
          </hbox>
        </richlistitem>
      </richlistbox>
    </vbox>
  </dialog>
</window>