Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2971)

Unified Diff: chrome/browser/resources/options/autofill_edit_address_overlay.html

Issue 243013004: i18n address editing in chrome://settings/autofillEditAddress. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Manual templates. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/autofill_edit_address_overlay.html
diff --git a/chrome/browser/resources/options/autofill_edit_address_overlay.html b/chrome/browser/resources/options/autofill_edit_address_overlay.html
index a54bc858a49d1336d7a820ecebe4ac8ee5386e59..b33889292567733f62f885d77a72ce12e4ecd280 100644
--- a/chrome/browser/resources/options/autofill_edit_address_overlay.html
+++ b/chrome/browser/resources/options/autofill_edit_address_overlay.html
@@ -2,70 +2,29 @@
<div class="close-button"></div>
<h1 id="autofill-address-title"></h1>
<div class="content-area">
- <div>
- <div id="autofill-name-labels">
- <span i18n-content="autofillFirstNameLabel"></span>
- <span i18n-content="autofillMiddleNameLabel"></span>
- <span i18n-content="autofillLastNameLabel"></span>
- </div>
- </div>
- <div>
- <list id="full-name-list"></list>
- </div>
-
- <label class="settings-row">
- <div i18n-content="autofillCompanyNameLabel"></div>
- <input id="company-name" type="text">
- </label>
-
- <label class="settings-row">
- <div i18n-content="autofillAddrLine1Label"></div>
- <input id="addr-line-1" type="text">
- </label>
-
- <label class="settings-row">
- <div i18n-content="autofillAddrLine2Label"></div>
- <input id="addr-line-2" type="text">
- </label>
-
- <div class="input-group settings-row">
- <label>
- <div i18n-content="autofillCityLabel"></div>
- <input id="city" type="text">
- </label>
-
- <label>
- <div id="state-label"></div>
- <input id="state" type="text">
- </label>
-
- <label>
- <div id="postal-code-label"></div>
- <input id="postal-code" type="text">
- </label>
+ <div id="autofill-edit-address-fields">
</div>
<div class="settings-row">
<label>
<div i18n-content="autofillCountryLabel"></div>
- <select id="country"></select>
+ <select class="country" field="country"></select>
</label>
</div>
<div class="input-group settings-row">
<div>
<div i18n-content="autofillPhoneLabel"></div>
- <list id="phone-list"
- i18n-values="placeholder:autofillAddPhonePlaceholder"></list>
+ <list class="phone-list" field="phone"
+ i18n-values="placeholder:autofillAddPhonePlaceholder"></list>
</div>
<div>
<div i18n-content="autofillEmailLabel"></div>
- <list id="email-list"
- i18n-values="placeholder:autofillAddEmailPlaceholder"></list>
+ <list class="email-list" field="email"
+ i18n-values="placeholder:autofillAddEmailPlaceholder"></list>
</div>
</div>
-
</div>
<div class="action-area button-strip">
@@ -75,3 +34,32 @@
class="default-button" i18n-content="ok" disabled></button>
</div>
</div>
+
+<div hidden>
+ <div id="autofill-address-row-template" class="input-group settings-row">
+ </div>
+
+ <div id="autofill-full-name-list-template">
+ <div>
+ <div class="autofill-name-labels">
+ <span i18n-content="autofillFirstNameLabel"></span>
Evan Stade 2014/04/25 20:02:18 I think we should standardize the number of name f
please use gerrit instead 2014/04/28 15:49:44 Done.
Evan Stade 2014/04/28 23:23:16 +isherman, any opinion on this change?
Ilya Sherman 2014/04/28 23:43:44 Websites will often request first, middle, and las
Evan Stade 2014/04/28 23:56:37 Isn't the inverse also true? If we have multiple i
Ilya Sherman 2014/04/29 00:08:29 I'm not following this example. I think you mean
Evan Stade 2014/04/29 00:24:41 yes, that is what I mean.
Ilya Sherman 2014/04/29 00:37:29 Lots of web forms ask for a middle initial, so peo
Evan Stade 2014/04/29 18:19:03 Into full name fields? If the site has a middle in
Ilya Sherman 2014/04/29 18:59:20 I definitely agree that we should improve our heur
Evan Stade 2014/04/29 19:14:31 Yes, this is a tangent. But it also matters to thi
Ilya Sherman 2014/04/29 19:25:03 For names in English, we don't tokenize correctly,
Evan Stade 2014/04/30 05:25:22 Yao Ming goes by surname-givenname in English. I'm
+ <span i18n-content="autofillMiddleNameLabel"></span>
+ <span i18n-content="autofillLastNameLabel"></span>
+ </div>
+ </div>
+ <div>
+ <list class="full-name-list" field="fullName"></list>
Evan Stade 2014/04/25 20:02:18 why is this a list inside a div, whereas below you
please use gerrit instead 2014/04/28 15:49:44 No longer relevant, as we're no longer using first
+ </div>
+ </div>
+
+ <div id="autofill-addr-lines-template">
Evan Stade 2014/04/25 20:02:18 hmm, this should be a textarea, if we are going to
please use gerrit instead 2014/04/28 15:49:44 Done.
+ <div i18n-content="autofillAddrLinesLabel"></div>
+ <list class="addr-lines" field="addrLines"
+ i18n-values="placeholder:autofillAddAddrLinePlaceholder"></list>
+ </div>
+
+ <label id="autofill-field-template">
+ <div></div>
+ <input type="text">
+ </label>
+</div>

Powered by Google App Engine
This is Rietveld 408576698