gecko-dev/extensions/wallet/editor/WalletCredit.xul

115 lines
4.0 KiB
XML

<?xml version="1.0"?>
<!--
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
-->
<?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
%brandDTD;
<!ENTITY % walletviewerDTD SYSTEM "chrome://communicator/locale/wallet/WalletViewer.dtd" >
%walletviewerDTD;
]>
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="parent.initPanel();">
<script type="application/x-javascript">
<![CDATA[
var _elementIDs = ["card.type", "card.number",
"card.expdate.month", "card.expdate.year", "card.name"];
]]>
</script>
<script type="application/x-javascript"
src="chrome://communicator/content/wallet/WalletViewer.js"/>
<groupbox>
<caption label="&credit.title;"/>
<grid class="indent" flex="1">
<columns>
<column/>
<column flex="1"/>
</columns>
<rows>
<row align="center">
<label value="&creditType.label;" control="card.type"
accesskey="&creditType.accesskey;"/>
<menulist id="card.type" editable="true" disableautoselect="true"
onchange="Append(this)">
<menupopup onpopupshowing="Append(this.parentNode)">
<menuitem label="" len="0"/>
</menupopup>
</menulist>
</row>
<row align="center">
<label value="&creditNumber.label;" control="card.number"
accesskey="&creditNumber.accesskey;"/>
<menulist id="card.number" editable="true" disableautoselect="true"
onchange="Append(this)">
<menupopup onpopupshowing="Append(this.parentNode)">
<menuitem label="" len="0"/>
</menupopup>
</menulist>
</row>
<row align="center">
<description>&creditExpires.label;</description>
<hbox align="center">
<label value="&creditExpiresMonth.label;" control="card.expdate.month"
accesskey="&creditExpiresMonth.accesskey;"/>
<menulist id="card.expdate.month" editable="true" disableautoselect="true" flex="40%" width="0"
onchange="Append(this)">
<menupopup onpopupshowing="Append(this.parentNode)">
<menuitem label="" len="0"/>
</menupopup>
</menulist>
<label value="&creditExpiresYear.label;" control="card.expdate.year"
accesskey="&creditExpiresYear.accesskey;"/>
<menulist id="card.expdate.year" editable="true" disableautoselect="true" flex="60%" width="0"
onchange="Append(this)">
<menupopup onpopupshowing="Append(this.parentNode)">
<menuitem label="" len="0"/>
</menupopup>
</menulist>
</hbox>
</row>
<row align="center">
<label value="&creditName.label;" control="card.name"
accesskey="&creditName.accesskey;"/>
<menulist id="card.name" editable="true" disableautoselect="true"
onchange="Append(this)">
<menupopup onpopupshowing="Append(this.parentNode)">
<menuitem label="" len="0"/>
</menupopup>
</menulist>
</row>
</rows>
</grid>
</groupbox>
</page>