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/global.css" type="text/css"?> 7 8<!DOCTYPE window> 9 10<window 11 data-l10n-id="change-device-password-window" 12 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 13 xmlns:html="http://www.w3.org/1999/xhtml" 14 onload="onLoad();"> 15<dialog id="set_password" 16 buttons="accept,cancel"> 17 18<linkset> 19 <html:link rel="localization" href="security/pippki/pippki.ftl"/> 20</linkset> 21 22<stringbundle id="pippki_bundle" src="chrome://pippki/locale/pippki.properties"/> 23 24<script src="chrome://global/content/globalOverlay.js"/> 25<script src="chrome://global/content/editMenuOverlay.js"/> 26 27<script src="chrome://pippki/content/changepassword.js"/> 28 29<hbox align="center"> 30 <label id="tokenName" data-l10n-id="change-password-token"/> 31</hbox> 32 33<separator/> 34 35<vbox> 36 <hbox class="input-row"> 37 <label flex="1" data-l10n-id="change-password-old" /> 38 <html:input id="oldpw" type="password"/> 39 <!-- This textbox is inserted as a workaround to the fact that making the 'type' 40 & 'disabled' property of the 'oldpw' textbox toggle between ['password' & 41 'false'] and ['text' & 'true'] - as would be necessary if the menu has more 42 than one tokens, some initialized and some not - does not work properly. So, 43 either the textbox 'oldpw' or the textbox 'message' would be displayed, 44 depending on the state of the token selected 45 --> 46 <html:input id="message" disabled="true" /> 47 </hbox> 48 <hbox class="input-row"> 49 <label flex="1" data-l10n-id="change-password-new" /> 50 <html:input id="pw1" type="password" 51 oninput="setPasswordStrength(); checkPasswords();"/> 52 </hbox> 53 <hbox class="input-row"> 54 <label flex="1" data-l10n-id="change-password-reenter" /> 55 <html:input id="pw2" type="password" oninput="checkPasswords();"/> 56 </hbox> 57</vbox> 58 59<vbox style="margin: 6px;"> 60 <label for="pwmeter" style="display: -moz-box;" data-l10n-id="password-quality-meter" /> 61 <html:progress id="pwmeter" value="0" max="100"/> 62</vbox> 63 64</dialog> 65</window> 66