summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/addrbook/content/abEditListDialog.xul
blob: 4832001f95536a4493b269698ab38eafaea504ff (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
<?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"?>

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

<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        id="ablistWindow"
        onload="OnLoadEditList();"
        ondialogaccept="return EditListOKButton();"
        ondragover="DragOverAddressListTree(event);"
        ondrop="DropOnAddressListTree(event);">

  <stringbundleset id="stringbundleset">
    <stringbundle id="bundle_addressBook" src="chrome://messenger/locale/addressbook/addressBook.properties"/>
  </stringbundleset>

  <!-- move needed functions into a single js file -->
  <script type="application/javascript" src="chrome://messenger/content/messengercompose/addressingWidgetOverlay.js"/>
  <script type="application/javascript" src="chrome://messenger/content/addressbook/abCommon.js"/>
  <script type="application/javascript" src="chrome://messenger/content/addressbook/abMailListDialog.js"/>

  <vbox id="editlist">
    <hbox id="ListNameContainer" align="center">
      <spacer flex="1"/>
      <label control="ListName" value="&ListName.label;" accesskey="&ListName.accesskey;" class="CardEditLabel"/>
      <hbox class="CardEditWidth">
        <textbox id="ListName" flex="1"/>
      </hbox>
    </hbox>
    <hbox id="ListNickNameContainer" align="center">
      <spacer flex="1"/>
      <label control="ListNickName" value="&ListNickName.label;" accesskey="&ListNickName.accesskey;" class="CardEditLabel"/>
      <hbox class="CardEditWidth">
        <textbox id="ListNickName" flex="1"/>
      </hbox>
    </hbox>
    <hbox id="ListDescriptionContainer" align="center">
      <spacer flex="1"/>
      <label control="ListDescription" value="&ListDescription.label;" accesskey="&ListDescription.accesskey;" class="CardEditLabel"/>
      <hbox class="CardEditWidth">
        <textbox id="ListDescription" flex="1"/>
      </hbox>
    </hbox>

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

    <richlistbox id="addressingWidget" style="height: 15em;" onclick="awClickEmptySpace(event.target, true)">
      <richlistitem class="addressingWidgetItem" allowevents="true">
        <hbox class="addressingWidgetCell" flex="1">
          <textbox id="addressCol1#1" class="plain textbox-addressingWidget uri-element"
                   type="autocomplete" flex="1"
                   autocompletesearch="addrbook ldap"
                   autocompletesearchparam="{}" timeout="300" maxrows="4"
                   completedefaultindex="true" forcecomplete="true"
                   completeselectedindex="true"
                   minresultsforpopup="3"
                   ontextentered="awRecipientTextCommand(param, this); if (param &amp;&amp; this.value != '') param.preventDefault();"
                   onkeydown="awRecipientKeyDown(event, this);"
                   onclick="awNotAnEmptyArea(event);">
            <image onclick="this.parentNode.select();" class="person-icon"/>
          </textbox>
        </hbox>
      </richlistitem>
    </richlistbox>
  </vbox>
</dialog>