summaryrefslogtreecommitdiffstats
path: root/mailnews/base/prefs/content/am-identity-edit.xul
blob: 448892382ee1671c8d831c16fffcc383548671bd (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
148
149
150
151
152
153
154
<?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/messenger.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/accountManage.css" type="text/css"?>

<?xul-overlay href="chrome://messenger/content/am-copiesOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/am-addressingOverlay.xul"?>

<!DOCTYPE dialog [
<!ENTITY % identityEditDTD SYSTEM "chrome://messenger/locale/am-identity-edit.dtd" >
%identityEditDTD;
<!ENTITY % identityDTD SYSTEM "chrome://messenger/locale/am-main.dtd" >
%identityDTD;
]>

<dialog id="identityDialog"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="onLoadIdentityProperties();"
        ondialogaccept="return onOk();"
        style="&identityDialog.style;">

  <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-prefs.js"/>
  <script type="application/javascript"
          src="chrome://messenger/content/am-identity-edit.js"/>

  <broadcaster id="broadcaster_attachSignature"/>

  <description flex="1">&identityListDesc.label;</description>
  <separator class="thin"/>

  <tabbox flex="1" style="overflow: auto;">
    <tabs id="identitySettings">
      <tab label="&settingsTab.label;"/>
      <tab label="&copiesFoldersTab.label;"/>
      <tab label="&addressingTab.label;"/>
    </tabs>

    <tabpanels id="identityTabsPanels" flex="1">
      <!-- Identity Settings Tab -->
      <vbox flex="1" name="settings">
        <groupbox>
          <caption label="&publicData.label;"/>

        <grid>
          <columns>
            <column/>
            <column flex="1"/>
          </columns>
          <rows>
            <row align="center">
              <label value="&name.label;" control="identity.fullName" accesskey="&name.accesskey;"/>
              <textbox id="identity.fullName" size="30"/>
            </row>
            <row align="center">
              <label value="&email.label;" control="identity.email" accesskey="&email.accesskey;"/>
              <textbox id="identity.email" class="uri-element"/>
            </row>
            <row align="center">
              <label value="&replyTo.label;" control="identity.replyTo" accesskey="&replyTo.accesskey;"/>
              <textbox id="identity.replyTo" class="uri-element" placeholder="&replyTo.placeholder;"/>
            </row>
            <row align="center">
              <label value="&organization.label;" control="identity.organization" accesskey="&organization.accesskey;"/>
              <textbox id="identity.organization"/>
            </row>
            <separator class="thin"/>
            <row align="center">
              <label value="&signatureText.label;" control="identity.htmlSigText" accesskey="&signatureText.accesskey;"/>
              <checkbox id="identity.htmlSigFormat" label="&signatureHtml.label;" accesskey="&signatureHtml.accesskey;"/>
            </row>
          </rows>
        </grid>

        <hbox class="indent" flex="1">
          <textbox id="identity.htmlSigText" flex="1" multiline="true" wrap="off" rows="4" class="signatureBox"/>
        </hbox>

        <hbox align="center">
          <checkbox id="identity.attachSignature" label="&signatureFile.label;" flex="1"
                    accesskey="&signatureFile.accesskey;"
                    oncommand="setupSignatureItems();"/>
        </hbox>

        <hbox align="center" class="indent">
          <textbox id="identity.signature" datatype="nsIFile" flex="1" name="identity.signature"
                   aria-labelledby="identity.attachSignature"
                   observes="broadcaster_attachSignature" class="uri-element"/>
          <button class="push" name="browse" label="&choose.label;"
                  accesskey="&choose.accesskey;"
                  oncommand="selectFile()"
                  observes="broadcaster_attachSignature"
                  id="identity.sigbrowsebutton"/>
        </hbox>

        <hbox align="center">
          <checkbox id="identity.attachVCard" label="&attachVCard.label;" flex="1"
                    accesskey="&attachVCard.accesskey;"/>
          <button class="push" name="editVCard" label="&editVCard.label;"
                  accesskey="&editVCard.accesskey;"
                  oncommand="editVCard()"/>
          <label hidden="true" id="identity.escapedVCard"/>
        </hbox>
        </groupbox>

        <groupbox>
          <caption label="&privateData.label;"/>

          <hbox align="center">
            <label value="&smtpName.label;"
                   control="identity.smtpServerKey"
                   accesskey="&smtpName.accesskey;"/>
            <menulist id="identity.smtpServerKey" flex="1">
              <menupopup id="smtpPopup">
                <menuitem value=""
                          label="&smtpDefaultServer.label;"
                          id="useDefaultItem"/>
                <menuseparator/>
                <!-- list will be inserted here -->
              </menupopup>
            </menulist>
          </hbox>

          <separator class="thin"/>

          <hbox align="center">
            <label value="&identityAlias.label;"
                   accesskey="&identityAlias.accesskey;"
                   control="identity.label"/>
            <textbox id="identity.label" flex="1"/>
          </hbox>
        </groupbox>

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

      <!-- Copies & Folders Tab -->
      <vbox flex="1" name="copiesAndFolders" id="copiesAndFolders"/>

      <!-- Composition & Addressing Tab -->
      <vbox flex="1" name="composeAddressing" id="compositionAndAddressing"/>

    </tabpanels>
  </tabbox>
</dialog>