|
1 <?xml version="1.0"?> |
|
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public |
|
3 - License, v. 2.0. If a copy of the MPL was not distributed with this |
|
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
|
5 |
|
6 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
|
7 |
|
8 <!DOCTYPE dialog SYSTEM "chrome://pippki/locale/pippki.dtd"> |
|
9 |
|
10 <dialog id="set_password" title="&setPassword.title;" |
|
11 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
|
12 buttons="accept,cancel" |
|
13 ondialogaccept="return setPassword();" |
|
14 onload="onLoad();"> |
|
15 |
|
16 <stringbundle id="pippki_bundle" src="chrome://pippki/locale/pippki.properties"/> |
|
17 |
|
18 <script type="application/javascript" src="chrome://pippki/content/password.js"/> |
|
19 |
|
20 <hbox align="center"> |
|
21 <label value="&setPassword.tokenName.label;: "/> |
|
22 <label id="tokenName" /> |
|
23 <menulist id="tokenMenu" oncommand="onMenuChange()"> |
|
24 <menupopup/> |
|
25 </menulist> |
|
26 </hbox> |
|
27 |
|
28 |
|
29 <!-- |
|
30 <menulist id="signerList" disabled="true"> |
|
31 <menupopup> |
|
32 <menuitem id="token-menu" label="Built-in private key database"/> |
|
33 <menuitem label="Bob Lord's iButton"/> |
|
34 </menupopup> |
|
35 </menulist> |
|
36 --> |
|
37 <separator/> |
|
38 |
|
39 <groupbox> |
|
40 <grid> |
|
41 <columns> |
|
42 <column/> |
|
43 <column/> |
|
44 </columns> |
|
45 <rows> |
|
46 <row> |
|
47 <label value="&setPassword.oldPassword.label;"/> |
|
48 <textbox id="oldpw" type="password"/> |
|
49 <!-- This textbox is inserted as a workaround to the fact that making the 'type' |
|
50 & 'disabled' property of the 'oldpw' textbox toggle between ['password' & |
|
51 'false'] and ['text' & 'true'] - as would be necessary if the menu has more |
|
52 than one tokens, some initialized and some not - does not work properly. So, |
|
53 either the textbox 'oldpw' or the textbox 'message' would be displayed, |
|
54 depending on the state of the token selected |
|
55 --> |
|
56 <textbox id="message" disabled="true" /> |
|
57 </row> |
|
58 <row> |
|
59 <label value="&setPassword.newPassword.label;"/> |
|
60 <textbox id="pw1" type="password" |
|
61 oninput="setPasswordStrength(); checkPasswords();"/> |
|
62 </row> |
|
63 <row> |
|
64 <label value="&setPassword.reenterPassword.label;"/> |
|
65 <textbox id="pw2" type="password" oninput="checkPasswords();"/> |
|
66 </row> |
|
67 </rows> |
|
68 </grid> |
|
69 </groupbox> |
|
70 |
|
71 <groupbox> |
|
72 <caption label="&setPassword.meter.label;"/> |
|
73 <progressmeter id="pwmeter" mode="determined" |
|
74 value="0"/> |
|
75 </groupbox> |
|
76 |
|
77 </dialog> |