security/manager/pki/resources/content/changepassword.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/manager/pki/resources/content/changepassword.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,77 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.6 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.8 +
     1.9 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
    1.10 +
    1.11 +<!DOCTYPE dialog SYSTEM "chrome://pippki/locale/pippki.dtd">
    1.12 +
    1.13 +<dialog id="set_password" title="&setPassword.title;"
    1.14 +  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"      
    1.15 +  buttons="accept,cancel"
    1.16 +  ondialogaccept="return setPassword();"
    1.17 +  onload="onLoad();">
    1.18 +
    1.19 +<stringbundle id="pippki_bundle" src="chrome://pippki/locale/pippki.properties"/>
    1.20 +
    1.21 +<script type="application/javascript" src="chrome://pippki/content/password.js"/>
    1.22 +
    1.23 +<hbox align="center">
    1.24 +  <label value="&setPassword.tokenName.label;: "/>
    1.25 +  <label id="tokenName" />
    1.26 +  <menulist id="tokenMenu" oncommand="onMenuChange()">
    1.27 +     <menupopup/>
    1.28 +  </menulist>
    1.29 +</hbox>
    1.30 +
    1.31 +
    1.32 +<!--
    1.33 +    <menulist id="signerList" disabled="true">
    1.34 +      <menupopup>
    1.35 +        <menuitem id="token-menu" label="Built-in private key database"/>
    1.36 +        <menuitem label="Bob Lord's iButton"/>
    1.37 +      </menupopup>
    1.38 +    </menulist>
    1.39 +-->
    1.40 +<separator/>
    1.41 +
    1.42 +<groupbox>
    1.43 +<grid>
    1.44 + <columns>
    1.45 +   <column/>
    1.46 +   <column/> 
    1.47 + </columns>
    1.48 + <rows>
    1.49 +   <row>
    1.50 +     <label value="&setPassword.oldPassword.label;"/> 
    1.51 +     <textbox id="oldpw" type="password"/>
    1.52 +     <!-- This textbox is inserted as a workaround to the fact that making the 'type' 
    1.53 +          & 'disabled' property of the 'oldpw' textbox toggle between ['password' & 
    1.54 +          'false'] and ['text' & 'true'] - as would be necessary if the menu has more 
    1.55 +          than one tokens, some initialized and some not - does not work properly. So, 
    1.56 +          either the textbox 'oldpw' or the textbox 'message' would be displayed, 
    1.57 +          depending on the state of the token selected 
    1.58 +     -->
    1.59 +     <textbox id="message" disabled="true" />
    1.60 +   </row>
    1.61 +   <row>
    1.62 +     <label value="&setPassword.newPassword.label;"/> 
    1.63 +     <textbox id="pw1" type="password" 
    1.64 +       oninput="setPasswordStrength(); checkPasswords();"/> 
    1.65 +   </row>
    1.66 +   <row>
    1.67 +     <label value="&setPassword.reenterPassword.label;"/> 
    1.68 +     <textbox id="pw2" type="password" oninput="checkPasswords();"/>  
    1.69 +   </row>
    1.70 + </rows>
    1.71 +</grid>
    1.72 +</groupbox>
    1.73 +
    1.74 +<groupbox>
    1.75 + <caption label="&setPassword.meter.label;"/>
    1.76 + <progressmeter id="pwmeter" mode="determined" 
    1.77 +                  value="0"/>
    1.78 +</groupbox>
    1.79 +
    1.80 +</dialog>

mercurial