mailnews/base/prefs/resources/content/am-main.xul
author Karsten Düsterloh <mnyromyr@tprac.de>
Fri, 19 Jun 2009 23:35:33 +0200
changeset 2895 6f5baa0cddd240bb7c0ecc6e9f57e78adc94b90a
parent 2390 12e923a82a10fb16e9a638898e140d5bc3ae2d2f
permissions -rw-r--r--
Merge for rev. 2894

<?xml version="1.0"?>

<?xml-stylesheet href="chrome://messenger/skin/accountManage.css" type="text/css"?>

<!DOCTYPE page SYSTEM "chrome://messenger/locale/am-main.dtd" >

<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      onload="parent.onPanelLoaded('am-main.xul');">

    <stringbundle id="bundle_prefs" src="chrome://messenger/locale/prefs.properties"/>
    <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>

    <script type="application/x-javascript" src="chrome://messenger/content/am-identity-edit.js"/>
    <script type="application/x-javascript" src="chrome://messenger/content/am-main.js"/>
    <script type="application/x-javascript" src="chrome://messenger/content/am-prefs.js"/>

    <broadcaster id="broadcaster_attachSignature"/>

    <dialogheader id="am-main-title" defaultTitle="&accountTitle.label;"/>

    <hbox align="center">
      <label value="&accountName.label;" control="server.prettyName"
             accesskey="&accountName.accesskey;"/>
      <textbox wsm_persist="true" size="30" id="server.prettyName"
               prefstring="mail.server.%serverkey%.name"/>
    </hbox>
    
    <separator class="thin"/>
    
    <groupbox style="width: 20em !important;">
      <caption label="&identityTitle.label;"/>
      <description>&identityDesc.label;</description>
      <separator class="thin"/>
      <grid flex="1">
        <columns>
          <column/>
          <column flex="1"/>
        </columns>
        <rows>
          <row align="center">
            <label value="&name.label;" control="identity.fullName"
                   accesskey="&name.accesskey;"/>
            <textbox wsm_persist="true" id="identity.fullName" size="30"
                     prefstring="mail.identity.%identitykey%.fullName"/>
          </row>
          <row align="center">
            <label value="&email.label;" control="identity.email"
                   accesskey="&email.accesskey;"/>
            <textbox wsm_persist="true" id="identity.email" 
                     prefstring="mail.identity.%identitykey%.useremail" class="uri-element"/>
          </row>
          <row align="center">
            <label value="&replyTo.label;" control="identity.replyTo"
                   accesskey="&replyTo.accesskey;"/>
            <textbox wsm_persist="true" id="identity.replyTo"
                     prefstring="mail.identity.%identitykey%.reply_to" class="uri-element"/>
          </row>
          <row align="center">
            <label value="&organization.label;" control="identity.organization"
                   accesskey="&organization.accesskey;"/>
            <textbox wsm_persist="true" id="identity.organization"
                     prefstring="mail.identity.%identitykey%.organization"/>
          </row>
          <separator class="thin"/>
          <row align="center">
            <label value="&signatureText.label;" control="identity.htmlSigText" accesskey="&signatureText.accesskey;"/>
            <checkbox wsm_persist="true" id="identity.htmlSigFormat" label="&signatureHtml.label;"
                      prefattribute="value" accesskey="&signatureHtml.accesskey;"
                      prefstring="mail.identity.%identitykey%.htmlSigFormat"/>
          </row>
        </rows>
      </grid>

      <hbox align="center" class="indent">
        <textbox wsm_persist="true" id="identity.htmlSigText" multiline="true" wrap="off" rows="4" flex="1"
                 prefstring="mail.identity.%identitykey%.htmlSigText" class="signatureBox"/>
      </hbox>

      <hbox align="center">
        <checkbox wsm_persist="true" id="identity.attachSignature" label="&signatureFile.label;" flex="1"
                  accesskey="&signatureFile.accesskey;"
                  oncommand="setupSignatureItems();"
                  prefattribute="value"
                  prefstring="mail.identity.%identitykey%.attach_signature"/>
      </hbox>

      <hbox align="center" class="indent">
        <textbox wsm_persist="true" id="identity.signature" datatype="nsILocalFile" flex="1" name="identity.signature"
                 aria-labelledby="identity.attachSignature"
                 observes="broadcaster_attachSignature"
                 prefstring="mail.identity.%identitykey%.sig_file" class="uri-element"/>
        <button class="push" name="browse" label="&choose.label;"
                accesskey="&choose.accesskey;" 
                oncommand="selectFile()"
                observes="broadcaster_attachSignature"
                wsm_persist="true" id="identity.sigbrowsebutton"
                prefstring="mail.identity.%identitykey%.sigbrowse.disable"/>
      </hbox>

      <hbox align="center">
        <checkbox wsm_persist="true" id="identity.attachVCard" label="&attachVCard.label;" flex="1"
                  accesskey="&attachVCard.accesskey;"
                  prefattribute="value"
                  prefstring="mail.identity.%identitykey%.attach_vcard"/>
        <button class="push" name="editVCard" label="&editVCard.label;"  
                accesskey="&editVCard.accesskey;"
                oncommand="editVCard()"/>
        <label hidden="true" wsm_persist="true" id="identity.escapedVCard"
                  pref="true" preftype="string" prefattribute="value"
                  prefstring="mail.identity.%identitykey%.escapedVCard"/>
      </hbox>

      <separator class="thin"/>
      <hbox align="center">
        <label value="&smtpName.label;" control="identity.smtpServerKey"
               accesskey="&smtpName.accesskey;"/>
        <menulist wsm_persist="true" id="identity.smtpServerKey" flex="1"
                  pref="true" preftype="string" prefattribute="value"
                  prefstring="mail.identity.%identitykey%.smtpServer">
          <menupopup id="smtpPopup">
            <menuitem value="" label="&smtpDefaultServer.label;" id="useDefaultItem"/>
            <menuseparator/>
            <!-- list will be inserted here -->
          </menupopup>
        </menulist>
      </hbox>
    </groupbox>

      <separator class="thin"/>

    <hbox align="center">
      <spacer flex="1"/>
      <button label="&manageIdentities.label;" oncommand="manageIdentities(event);"
              accesskey="&manageIdentities.accesskey;"
              wsm_persist="true" id="identity.manageIdentitiesbutton"/>
    </hbox>

</page>