|
1 <?xml version="1.0"?> |
|
2 |
|
3 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
4 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
5 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
6 |
|
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
|
8 |
|
9 <!DOCTYPE dialog [ |
|
10 <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" > |
|
11 <!ENTITY % changempDTD SYSTEM "chrome://mozapps/locale/preferences/changemp.dtd" > |
|
12 %brandDTD; |
|
13 %changempDTD; |
|
14 ]> |
|
15 |
|
16 <dialog id="changemp" title="&setPassword.title;" |
|
17 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
18 style="width: 35em;" |
|
19 ondialogaccept="setPassword();" |
|
20 onload="init()"> |
|
21 |
|
22 <script type="application/javascript" src="chrome://mozapps/content/preferences/changemp.js"/> |
|
23 |
|
24 <stringbundle id="bundlePreferences" src="chrome://mozapps/locale/preferences/preferences.properties"/> |
|
25 |
|
26 <description control="pw1">&masterPasswordDescription.label;</description> |
|
27 |
|
28 <groupbox> |
|
29 <grid> |
|
30 <columns> |
|
31 <column/> |
|
32 <column/> |
|
33 </columns> |
|
34 <rows> |
|
35 <row> |
|
36 <label control="oldpw" value="&setPassword.oldPassword.label;"/> |
|
37 <textbox id="oldpw" type="password"/> |
|
38 <!-- This textbox is inserted as a workaround to the fact that making the 'type' |
|
39 & 'disabled' property of the 'oldpw' textbox toggle between ['password' & |
|
40 'false'] and ['text' & 'true'] - as would be necessary if the menu has more |
|
41 than one tokens, some initialized and some not - does not work properly. So, |
|
42 either the textbox 'oldpw' or the textbox 'message' would be displayed, |
|
43 depending on the state of the token selected |
|
44 --> |
|
45 <textbox id="message" disabled="true" /> |
|
46 </row> |
|
47 <row> |
|
48 <label control="pw1" value="&setPassword.newPassword.label;"/> |
|
49 <textbox id="pw1" type="password" |
|
50 oninput="setPasswordStrength(); checkPasswords();"/> |
|
51 </row> |
|
52 <row> |
|
53 <label control="pw2" value="&setPassword.reenterPassword.label;"/> |
|
54 <textbox id="pw2" type="password" oninput="checkPasswords();"/> |
|
55 </row> |
|
56 </rows> |
|
57 </grid> |
|
58 </groupbox> |
|
59 |
|
60 <groupbox> |
|
61 <caption label="&setPassword.meter.label;"/> |
|
62 <progressmeter id="pwmeter" mode="determined" value="0"/> |
|
63 </groupbox> |
|
64 |
|
65 <description control="pw2" class="header">&masterPasswordWarning.label;</description> |
|
66 |
|
67 </dialog> |