MSFX/chrome/utils/passwordmgr/passwordManager.xhtml

135 lines
5.2 KiB
HTML

<?xml version="1.0"?> <!-- -*- Mode: SGML; indent-tabs-mode: nil -*- -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://global/skin/passwordmgr.css" type="text/css"?>
<window id="SignonViewerDialog"
windowtype="Toolkit:PasswordManager"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
onload="Startup();"
onunload="Shutdown();"
title="Saved Logins"
style="min-width: 45em;"
persist="width height screenX screenY">
<script src="chrome://browser/content/utilityOverlay.js"/>
<script src="chrome://userchromejs/content/passwordmgr/passwordManager.js"/>
<keyset>
<key keycode="VK_ESCAPE" oncommand="escapeKeyHandler();"/>
<key key="w" modifiers="accel" oncommand="escapeKeyHandler();"/>
<key key="f" modifiers="accel" oncommand="FocusFilterBox();"/>
<key key="k" modifiers="accel" oncommand="FocusFilterBox();"/>
</keyset>
<popupset id="signonsTreeContextSet">
<menupopup id="signonsTreeContextMenu"
onpopupshowing="UpdateContextMenu()">
<menuitem id="context-copysiteurl"
label="Copy URL"
accesskey="y"
oncommand="CopySiteUrl()"/>
<menuitem id="context-launchsiteurl"
label="Visit URL"
accesskey="V"
oncommand="LaunchSiteUrl()"/>
<menuseparator/>
<menuitem id="context-copyusername"
label="Copy Username"
accesskey="U"
oncommand="CopyUsername()"/>
<menuitem id="context-editusername"
label="Edit Username"
accesskey="d"
oncommand="EditCellInSelectedRow('username')"/>
<menuseparator/>
<menuitem id="context-copypassword"
label="Copy Password"
accesskey="C"
oncommand="CopyPassword()"/>
<menuitem id="context-editpassword"
label="Edit Password"
accesskey="E"
oncommand="EditCellInSelectedRow('password')"/>
</menupopup>
</popupset>
<!-- saved signons -->
<vbox id="savedsignons" class="contentPane" flex="1">
<!-- filter -->
<hbox align="center">
<search-textbox id="filter" flex="1"
aria-controls="signonsTree"
oncommand="FilterPasswords();"
accesskey="S"
placeholder="Search"/>
</hbox>
<label control="signonsTree" id="signonsIntro"/>
<separator class="thin"/>
<tree id="signonsTree" flex="1"
width="750"
style="height: 20em;"
onkeypress="HandleSignonKeyPress(event)"
onselect="SignonSelected();"
editable="true"
context="signonsTreeContextMenu">
<treecols>
<treecol id="siteCol" label="Site" style="-moz-box-flex: 40"
data-field-name="origin" persist="width"
ignoreincolumnpicker="true"
sortDirection="ascending"/>
<splitter class="tree-splitter"/>
<treecol id="userCol" label="Username" style="-moz-box-flex: 25"
ignoreincolumnpicker="true"
data-field-name="username" persist="width"/>
<splitter class="tree-splitter"/>
<treecol id="passwordCol" label="Password" style="-moz-box-flex: 15"
ignoreincolumnpicker="true"
data-field-name="password" persist="width"
hidden="true"/>
<splitter class="tree-splitter"/>
<treecol id="timeCreatedCol" label="First Used" style="-moz-box-flex: 10"
data-field-name="timeCreated" persist="width hidden"
hidden="true"/>
<splitter class="tree-splitter"/>
<treecol id="timeLastUsedCol" label="Last Used" style="-moz-box-flex: 20"
data-field-name="timeLastUsed" persist="width hidden"
hidden="true"/>
<splitter class="tree-splitter"/>
<treecol id="timePasswordChangedCol" label="Last Changed" style="-moz-box-flex: 10"
data-field-name="timePasswordChanged" persist="width hidden"/>
<splitter class="tree-splitter"/>
<treecol id="timesUsedCol" label="Times Used" flex="1"
data-field-name="timesUsed" persist="width hidden"
hidden="true"/>
<splitter class="tree-splitter"/>
</treecols>
<treechildren/>
</tree>
<separator class="thin"/>
<hbox id="SignonViewerButtons">
<button id="removeSignon" disabled="true"
label="Remove"
accesskey="R"
oncommand="DeleteSignon();"/>
<button id="removeAllSignons"
oncommand="DeleteAllSignons();"/>
<spacer flex="1"/>
<button label="Import"
accesskey="I"
oncommand="OpenMigrator();"/>
<button id="togglePasswords"
oncommand="TogglePasswordVisible();"/>
</hbox>
</vbox>
<hbox align="end">
<hbox class="actionButtons">
<spacer flex="1"/>
<button oncommand="window.close();"
label="Close"
accesskey="C"/>
</hbox>
</hbox>
</window>