forked from mirrors/gecko-dev
--HG-- rename : browser/extensions/formautofill/bootstrap.js => browser/extensions/formautofill/api.js rename : browser/extensions/formautofill/install.rdf.in => browser/extensions/formautofill/manifest.json rename : browser/extensions/formautofill/skin/shared/autocomplete-item.css => browser/extensions/formautofill/skin/shared/autocomplete-item-shared.css rename : browser/extensions/formautofill/skin/shared/editDialog.css => browser/extensions/formautofill/skin/shared/editDialog-shared.css extra : rebase_source : 233ea805630209a07d347e19f19710d9755f595f extra : source : ecda6532c852b3f225fce998e3ce83ad157760e6
110 lines
3.9 KiB
HTML
110 lines
3.9 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
<!DOCTYPE html [
|
|
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
|
|
%globalDTD;
|
|
]>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title data-localization="addNewAddressTitle"/>
|
|
<link rel="stylesheet" href="resource://formautofill/editDialog-shared.css"/>
|
|
<link rel="stylesheet" href="resource://formautofill/editAddress.css"/>
|
|
<link rel="stylesheet" href="resource://formautofill/editDialog.css"/>
|
|
<script src="chrome://formautofill/content/l10n.js"></script>
|
|
<script src="chrome://formautofill/content/editDialog.js"></script>
|
|
<script src="chrome://formautofill/content/autofillEditForms.js"></script>
|
|
</head>
|
|
<body dir="&locale.dir;">
|
|
<form id="form" autocomplete="off">
|
|
<div>
|
|
<div id="name-container">
|
|
<label id="given-name-container">
|
|
<span data-localization="givenName"/>
|
|
<input id="given-name" type="text" required="true"/>
|
|
</label>
|
|
<label id="additional-name-container">
|
|
<span data-localization="additionalName"/>
|
|
<input id="additional-name" type="text"/>
|
|
</label>
|
|
<label id="family-name-container">
|
|
<span data-localization="familyName"/>
|
|
<input id="family-name" type="text"/>
|
|
</label>
|
|
</div>
|
|
<label id="organization-container">
|
|
<span data-localization="organization2"/>
|
|
<input id="organization" type="text"/>
|
|
</label>
|
|
<label id="street-address-container">
|
|
<span data-localization="streetAddress"/>
|
|
<textarea id="street-address" rows="3" required="true"/>
|
|
</label>
|
|
<label id="address-level2-container">
|
|
<span data-localization="city"/>
|
|
<input id="address-level2" type="text" required="true"/>
|
|
</label>
|
|
<label id="address-level1-container">
|
|
<span/>
|
|
<input id="address-level1" type="text" required="true"/>
|
|
</label>
|
|
<label id="postal-code-container">
|
|
<span/>
|
|
<input id="postal-code" type="text" required="true"/>
|
|
</label>
|
|
</div>
|
|
<label id="country-container">
|
|
<span data-localization="country"/>
|
|
<select id="country" required="true">
|
|
<option/>
|
|
</select>
|
|
</label>
|
|
<p id="country-warning-message" data-localization="countryWarningMessage2"/>
|
|
<label id="email-container">
|
|
<span data-localization="email"/>
|
|
<input id="email" type="email"/>
|
|
</label>
|
|
<label id="tel-container">
|
|
<span data-localization="tel"/>
|
|
<input id="tel" type="tel"/>
|
|
</label>
|
|
</form>
|
|
<div id="controls-container">
|
|
<button id="cancel" data-localization="cancelBtnLabel"/>
|
|
<button id="save" disabled="disabled" data-localization="saveBtnLabel"/>
|
|
</div>
|
|
<script type="application/javascript"><![CDATA[
|
|
"use strict";
|
|
|
|
let {
|
|
DEFAULT_REGION,
|
|
supportedCountries,
|
|
} = FormAutofill;
|
|
let {
|
|
getFormFormat,
|
|
} = FormAutofillUtils;
|
|
let record = window.arguments && window.arguments[0];
|
|
let novalidate = window.arguments && window.arguments[1] == "novalidate";
|
|
|
|
/* import-globals-from autofillEditForms.js */
|
|
let fieldContainer = new EditAddress({
|
|
form: document.getElementById("form"),
|
|
}, record, {
|
|
DEFAULT_REGION,
|
|
getFormFormat: getFormFormat.bind(FormAutofillUtils),
|
|
supportedCountries,
|
|
novalidate,
|
|
});
|
|
|
|
/* import-globals-from editDialog.js */
|
|
new EditAddressDialog({
|
|
title: document.querySelector("title"),
|
|
fieldContainer,
|
|
controlsContainer: document.getElementById("controls-container"),
|
|
cancel: document.getElementById("cancel"),
|
|
save: document.getElementById("save"),
|
|
}, record);
|
|
]]></script>
|
|
</body>
|
|
</html>
|