browser/extensions/formautofill/content/editAddress.xhtml
author Scott Wu <scottcwwu@gmail.com>
Fri, 28 Jul 2017 17:37:23 +0800
changeset 423097 81175d42ca37961a81e78cdf2108bd8da6e35c8f
parent 422726 9bdc922716e80b3438bfe7ac01ac38f821299ba5
child 423755 4a3a57f3f8ccb4f8272256f5481badf6eb6677e9
permissions -rw-r--r--
Bug 1377360 - [Form Autofill] Move warning message from the manage addresses dialog to the edit address dialog. r=lchang MozReview-Commit-ID: IuZpHQ6hyBo

<?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>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title data-localization="addNewDialogTitle"/>
  <link rel="stylesheet" href="chrome://formautofill-shared/skin/editAddress.css" />
  <link rel="stylesheet" href="chrome://formautofill/skin/editAddress.css" />
  <script src="chrome://formautofill/content/editAddress.js"></script>
</head>
<body>
  <form autocomplete="off">
    <label id="given-name-container">
      <span data-localization="givenName"/>
      <input id="given-name" type="text"/>
    </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>
    <label id="organization-container">
      <span data-localization="organization"/>
      <input id="organization" type="text"/>
    </label>
    <label id="street-address-container">
      <span data-localization="streetAddress"/>
      <textarea id="street-address" rows="3"/>
    </label>
    <label id="address-level2-container">
      <span data-localization="city"/>
      <input id="address-level2" type="text"/>
    </label>
    <label id="address-level1-container">
      <span/>
      <input id="address-level1" type="text"/>
    </label>
    <label id="postal-code-container">
      <span/>
      <input id="postal-code" type="text"/>
    </label>
    <label id="country-container">
      <span data-localization="country"/>
      <select id="country">
        <option/>
        <option value="US" data-localization="us"/>
      </select>
    </label>
    <p id="country-warning-message" data-localization="countryWarningMessage"/>
    <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="cancel"/>
    <button id="save" disabled="disabled" data-localization="save"/>
  </div>
  <script type="application/javascript"><![CDATA[
    "use strict";
    // Localize strings before DOMContentLoaded to prevent flash
    window.dialog.localizeDocument();
  ]]></script>
</body>
</html>