toolkit/mozapps/preferences/changemp.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/mozapps/preferences/changemp.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,67 @@
     1.4 +<?xml version="1.0"?>
     1.5 +
     1.6 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.9 +
    1.10 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
    1.11 +
    1.12 +<!DOCTYPE dialog [
    1.13 +<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
    1.14 +<!ENTITY % changempDTD SYSTEM "chrome://mozapps/locale/preferences/changemp.dtd" >
    1.15 +%brandDTD;
    1.16 +%changempDTD;
    1.17 +]>
    1.18 +
    1.19 +<dialog id="changemp" title="&setPassword.title;"
    1.20 +        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
    1.21 +        style="width: 35em;" 
    1.22 +        ondialogaccept="setPassword();" 
    1.23 +        onload="init()">
    1.24 +
    1.25 +  <script type="application/javascript" src="chrome://mozapps/content/preferences/changemp.js"/>
    1.26 +
    1.27 +  <stringbundle id="bundlePreferences" src="chrome://mozapps/locale/preferences/preferences.properties"/>
    1.28 +
    1.29 +  <description control="pw1">&masterPasswordDescription.label;</description>
    1.30 +
    1.31 +  <groupbox>
    1.32 +    <grid>
    1.33 +      <columns>
    1.34 +        <column/>
    1.35 +        <column/> 
    1.36 +      </columns>
    1.37 +      <rows>
    1.38 +        <row>
    1.39 +          <label control="oldpw" value="&setPassword.oldPassword.label;"/> 
    1.40 +          <textbox id="oldpw" type="password"/>
    1.41 +          <!-- This textbox is inserted as a workaround to the fact that making the 'type' 
    1.42 +                & 'disabled' property of the 'oldpw' textbox toggle between ['password' & 
    1.43 +                'false'] and ['text' & 'true'] - as would be necessary if the menu has more 
    1.44 +                than one tokens, some initialized and some not - does not work properly. So, 
    1.45 +                either the textbox 'oldpw' or the textbox 'message' would be displayed, 
    1.46 +                depending on the state of the token selected 
    1.47 +          -->
    1.48 +          <textbox id="message" disabled="true" />
    1.49 +        </row>
    1.50 +        <row>
    1.51 +          <label control="pw1" value="&setPassword.newPassword.label;"/> 
    1.52 +          <textbox id="pw1" type="password" 
    1.53 +                   oninput="setPasswordStrength(); checkPasswords();"/> 
    1.54 +        </row>
    1.55 +        <row>
    1.56 +          <label control="pw2" value="&setPassword.reenterPassword.label;"/> 
    1.57 +          <textbox id="pw2" type="password" oninput="checkPasswords();"/>  
    1.58 +        </row>
    1.59 +      </rows>
    1.60 +    </grid>
    1.61 +  </groupbox>
    1.62 +
    1.63 +  <groupbox>
    1.64 +    <caption label="&setPassword.meter.label;"/>
    1.65 +    <progressmeter id="pwmeter" mode="determined" value="0"/>
    1.66 +  </groupbox>
    1.67 +
    1.68 +  <description control="pw2" class="header">&masterPasswordWarning.label;</description>
    1.69 +
    1.70 +</dialog>

mercurial