summaryrefslogtreecommitdiffstats
path: root/mailnews/base/prefs/content/am-main.xul
blob: 53e87bec12c63bcd7b92ff9d294f469746c0130e (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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<?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/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');">

  <vbox flex="1" style="overflow: auto;">
    <stringbundle id="bundle_prefs" src="chrome://messenger/locale/prefs.properties"/>
    <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>

    <script type="application/javascript" src="chrome://messenger/content/am-identity-edit.js"/>
    <script type="application/javascript" src="chrome://messenger/content/am-main.js"/>
    <script type="application/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;" flex="1">
      <caption label="&identityTitle.label;"/>
      <description>&identityDesc.label;</description>
      <separator class="thin"/>
      <grid>
        <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"
                     placeholder="&replyTo.placeholder;"/>
          </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 class="indent" flex="1" style="min-height: 50px;">
        <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="nsIFile" 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>

    <spacer flex="1"/>
  </vbox>

</page>