changepassword.xhtml 2.18 KB
Newer Older
1
<?xml version="1.0"?>
2
3
4
<!-- 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/. -->
5

javi%netscape.com's avatar
javi%netscape.com committed
6
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
7

8
<!DOCTYPE dialog SYSTEM "chrome://pippki/locale/pippki.dtd">
javi%netscape.com's avatar
javi%netscape.com committed
9

10
<dialog id="set_password" title="&setPassword.title;"
11
12
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns:html="http://www.w3.org/1999/xhtml"
13
  buttons="accept,cancel"
14
  onload="onLoad();">
javi%netscape.com's avatar
javi%netscape.com committed
15

16
17
<stringbundle id="pippki_bundle" src="chrome://pippki/locale/pippki.properties"/>

18
19
20
<script src="chrome://global/content/globalOverlay.js"/>
<script src="chrome://global/content/editMenuOverlay.js"/>

21
<script src="chrome://pippki/content/changepassword.js"/>
22

23
<hbox align="center">
24
25
  <label value="&setPassword.tokenName.label;: "/>
  <label id="tokenName" />
26
27
</hbox>

28
<separator/>
javi%netscape.com's avatar
javi%netscape.com committed
29

30
<vbox>
31
  <hbox class="input-row">
32
    <label flex="1" value="&setPassword.oldPassword.label;"/>
33
    <html:input id="oldpw" type="password"/>
34
35
36
37
38
39
    <!-- This textbox is inserted as a workaround to the fact that making the 'type'
         & 'disabled' property of the 'oldpw' textbox toggle between ['password' &
         'false'] and ['text' & 'true'] - as would be necessary if the menu has more
         than one tokens, some initialized and some not - does not work properly. So,
         either the textbox 'oldpw' or the textbox 'message' would be displayed,
         depending on the state of the token selected
40
     -->
41
     <html:input id="message" disabled="true" />
42
   </hbox>
43
  <hbox class="input-row">
44
    <label flex="1" value="&setPassword.newPassword.label;"/>
45
46
    <html:input id="pw1" type="password"
                oninput="setPasswordStrength(); checkPasswords();"/>
47
  </hbox>
48
  <hbox class="input-row">
49
    <label flex="1" value="&setPassword.reenterPassword.label;"/>
50
    <html:input id="pw2" type="password" oninput="checkPasswords();"/>
51
52
  </hbox>
</vbox>
53

54
55
56
57
<vbox style="margin: 6px;">
  <html:label for="pwmeter" style="display: -moz-box;">&setPassword.meter.label;</html:label>
  <html:progress id="pwmeter" value="0" max="100"/>
</vbox>
javi%netscape.com's avatar
javi%netscape.com committed
58

59
</dialog>