mail/components/addrbook/content/abMailListDialog.xul
author Misak Khachatryan <misak.bugzilla@gmail.com>
Tue, 10 Dec 2013 11:18:27 +0400
changeset 16983 63baf8270c1cb8b380784b61c43905c688e051d6
parent 16119 c06df11f1abf92b09be9401efe8ee4399e2da51d
child 19438 c3ba9d95d05a6ae44b30012bd378907b9be8dfcd
permissions -rw-r--r--
Bug 948293 - Build bustage after bug 713082. r+a=Neil CLOSED TREE

<?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"
        title="&mailListWindow.title;"
        ondialogaccept="return MailListOKButton();"
        onload="OnLoadNewMailList();"
        ondragover="DragOverAddressListTree(event);"
        ondragdrop="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"/>

  <hbox align="center">
    <label control="abPopup" value="&addToAddressBook.label;" accesskey="&addToAddressBook.accesskey;"/>
    <menulist id="abPopup">
      <menupopup id="abPopup-menupopup" class="addrbooksPopup" writable="true"
                 supportsmaillists="true"/>
    </menulist>
  </hbox>

  <spacer style="height:1em"/>

  <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="addressingWidget" value="&AddressTitle.label;"/>
    <spacer style="height:0.1em"/>

    <listbox id="addressingWidget" style="height: 15em;" onclick="awClickEmptySpace(event.target, true)">
      <listitem class="addressingWidgetItem" allowevents="true">
        <listcell class="addressingWidgetCell">
          <textbox id="addressCol1#1" class="plain textbox-addressingWidget uri-element"
                   type="autocomplete" flex="1"
                   autocompletesearch="addrbook ldap" timeout="300" maxrows="4"
                   completedefaultindex="true" forcecomplete="true"
                   minresultsforpopup="3"
                   ontextentered="awRecipientTextCommand(eventParam, this)"
                   onkeypress="handleKeyPress(this, event);"
                   onkeydown="awRecipientKeyDown(event, this);"
                   onclick="awNotAnEmptyArea(event);">
            <image onclick="this.parentNode.select();" class="person-icon"/>
          </textbox>
        </listcell>            
      </listitem>
    </listbox>
  </vbox>
</dialog>