summaryrefslogtreecommitdiffstats
path: root/comm/mailnews/base/prefs/content/AccountWizard.xhtml
blob: b58db60f6033f358165507b8daf667d0c8c6ad80 (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
155
156
157
158
159
160
161
<?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/. -->

<!-- NOTE: This Account Wizard is *only* for Newsgroup accounts. Historically,
   - it was a generic Account Wizard, hence the generic naming. -->

<?xml-stylesheet href="chrome://messenger/skin/accountWizard.css" type="text/css"?>
<?xml-stylesheet type="text/css" href="chrome://messenger/skin/input-fields.css"?>
<?xml-stylesheet href="chrome://messenger/skin/shared/grid-layout.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/themeableDialog.css" type="text/css"?>

<!DOCTYPE window [
<!ENTITY % AccountWizardDTD SYSTEM "chrome://messenger/locale/AccountWizard.dtd">
%AccountWizardDTD;
<!ENTITY % newsblogDTD SYSTEM "chrome://messenger-newsblog/locale/am-newsblog.dtd">
%newsblogDTD;
]>

<window id="AccountWizard" title="&windowTitle.label;"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/1999/xhtml"
        onload="onAccountWizardLoad();"
        style="width: 40em; height: 38em;"
        lightweightthemes="true">
  <stringbundle id="bundle_prefs" src="chrome://messenger/locale/prefs.properties"/>
  <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
  <linkset>
    <html:link rel="localization" href="toolkit/global/wizard.ftl"/>
  </linkset>

  <script src="chrome://messenger/content/globalOverlay.js"/>
  <script src="chrome://global/content/editMenuOverlay.js"/>
  <script src="chrome://messenger/content/accountUtils.js"/>
  <script src="chrome://messenger/content/amUtils.js"/>
  <script src="chrome://messenger/content/AccountWizard.js"/>
  <script src="chrome://messenger/content/aw-identity.js"/>
  <script src="chrome://messenger/content/aw-incoming.js"/>
  <script src="chrome://messenger/content/aw-accname.js"/>
  <script src="chrome://messenger/content/aw-done.js"/>

  <wizard>
    <!-- Identity page : Collects user's full name and email address -->
    <wizardpage id="identitypage" pageid="identitypage"
                label="&identityTitle.label;">
      <vbox>
        <description flex="1">&identityDesc.label;</description>
        <separator/>
        <description flex="1">&fullnameDesc.label; &fullnameExample.label;</description>
        <separator class="thin"/>
        <hbox align="center" class="input-container">
          <label id="fullnameLabel" class="awIdentityLabel" value="&fullnameLabel.label;"
                 accesskey="&fullnameLabel.accesskey;" control="fullName"/>
          <html:input id="fullName"
                      type="text"
                      required="required"
                      wsm_persist="true"
                      name="fullName"
                      class="input-inline"
                      aria-labelledby="fullnameLabel"
                      oninput="identityPageValidate();"/>
        </hbox>
        <separator/>
        <vbox>
          <hbox>
            <description id="emailDescText" flex="1"/>
          </hbox>
          <hbox align="center">
            <label id="emailFieldLabel"
                   class="awIdentityLabel"
                   value="&emailLabel.label;"
                   accesskey="&emailLabel.accesskey;"
                   control="email"/>
            <hbox class="uri-element input-container" align="center" flex="1">
              <html:input id="email"
                          type="email"
                          required="required"
                          wsm_persist="true"
                          name="email"
                          aria-labelledby="emailFieldLabel"
                          oninput="identityPageValidate();"
                          class="uri-element input-inline"/>
            </hbox>
          </hbox>
        </vbox>
      </vbox>
    </wizardpage>

    <!-- News Server page : Collects the News groups server name -->
    <wizardpage id="newsserver" pageid="newsserver"
                label="&incomingTitle.label;">
      <vbox flex="1">
        <description>&newsServerNameDesc.label;</description>
        <separator class="thin"/>
        <hbox align="center" class="input-container">
          <label id="newsServerLabel" control="newsServer"
                 value="&newsServerLabel.label;"
                 accesskey="&newsServerLabel.accesskey;"
                 style="width: 8em;"/>
          <html:input id="newsServer"
                      type="text"
                      wsm_persist="true"
                      class="uri-element input-inline"
                      aria-labelledby="newsServerLabel"
                      oninput="incomingPageValidate();"/>
        </hbox>
      </vbox>
    </wizardpage>

    <!-- Account name page : User gets a choice to enter a pretty name for the account -->
    <!-- Defaults : Mail account -> Email address, Newsgroup account -> Newsgroup server name -->
    <wizardpage id="accnamepage" pageid="accnamepage"
                label="&accnameTitle.label;">
      <vbox flex="1">
        <description>&accnameDesc.label;</description>
        <separator class="thin"/>
        <hbox align="center" class="input-container">
          <label id="prettyNameLabel" class="label"
                 value="&accnameLabel.label;"
                 style="width: 8em;"
                 accesskey="&accnameLabel.accesskey;"
                 control="prettyName"/>
          <html:input id="prettyName"
                      type="text"
                      size="40"
                      wsm_persist="true"
                      class="input-inline"
                      aria-labelledby="prettyNameLabel"
                      oninput="acctNamePageValidate();"/>
        </hbox>
      </vbox>
    </wizardpage>

    <!-- Done page : this page summarizes information collected to create a mail/news account -->
    <wizardpage id="done" pageid="done"
                label="&completionTitle.label;">
      <vbox flex="1">
        <description>&completionText.label;</description>
        <separator class="thin"/>
        <html:div class="grid-two-column-fr grid-items-baseline">
          <label id="account.name.label" flex="1" class="label" value="&accnameLabel.label;"/>
          <label id="account.name.text" flex="1" class="label"/>
          <label id="identity.email.label" flex="1" class="label" value="&emailLabel.label;"/>
          <label id="identity.email.text" flex="1" class="label"/>
          <label id="server.username.label" flex="1" class="label" value="&incomingUsername.label;"/>
          <label id="server.username.text" flex="1" class="label"/>
          <label id="newsServer.name.label" flex="1" class="label" value="&newsServerNamePrefix.label;"/>
          <label id="newsServer.name.text" flex="1" class="label"/>
        </html:div>
        <separator/>
        <spacer flex="1"/>
#ifndef XP_MACOSX
        <description>&clickFinish.label;</description>
#else
        <description>&clickFinish.labelMac;</description>
#endif
      </vbox>
    </wizardpage>
  </wizard>
</window>