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

Side by Side Diff: chrome/browser/sync/resources/gaia_login.html

Issue 199083: Populate strings in gaia_login.html using jstemplates instead of literals.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/views/sync/sync_setup_wizard.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <style type="text/css"><!-- 2 <style type="text/css"><!--
3 body,td,div,p,a,font,span {font-family: arial,sans-serif;} 3 body,td,div,p,a,font,span {font-family: arial,sans-serif;}
4 body { bgcolor:"#ffffff" } 4 body { bgcolor:"#ffffff" }
5 A:link {color:#0000cc; } 5 A:link {color:#0000cc; }
6 A:visited { color:#551a8b; } 6 A:visited { color:#551a8b; }
7 A:active { color:#ff0000; } 7 A:active { color:#ff0000; }
8 .form-noindent {background-color: #ffffff; border: #C3D9FF 1px solid} 8 .form-noindent {background-color: #ffffff; border: #C3D9FF 1px solid}
9 --></style> 9 --></style>
10 <head> 10 <head>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 function showGaiaLogin(args) { 59 function showGaiaLogin(args) {
60 var throbber = document.getElementById('throbber_container'); 60 var throbber = document.getElementById('throbber_container');
61 throbber.style.display = "none"; 61 throbber.style.display = "none";
62 var f = document.getElementById("gaia_loginform"); 62 var f = document.getElementById("gaia_loginform");
63 if (f) { 63 if (f) {
64 f.Email.value = args.user; 64 f.Email.value = args.user;
65 } 65 }
66 resetErrorVisibility(); 66 resetErrorVisibility();
67 var t = document.getElementById("errormsg_1_Password");
68 if (t) {
69 t.innerHTML = "Username and password do not match. [<a href=\"http://www .google.com/support/accounts/bin/answer.py?ctx=ch&answer=27444\">?</a>]";
70 }
71 if (1 == args.error) { 67 if (1 == args.error) {
72 setElementDisplay("errormsg_1_Password", 'table-row'); 68 setElementDisplay("errormsg_1_Password", 'table-row');
73 setBlurbError(); 69 setBlurbError();
74 } 70 }
75 if (3 == args.error) { 71 if (3 == args.error) {
76 setElementDisplay("errormsg_0_Connection", 'table-row'); 72 setElementDisplay("errormsg_0_Connection", 'table-row');
77 setBlurbError(); 73 setBlurbError();
78 } 74 }
79 document.getElementById("signIn").disabled = false; 75 document.getElementById("signIn").disabled = false;
80 gaia_setFocus(); 76 gaia_setFocus();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 chrome.send("SubmitAuth", [result]); 108 chrome.send("SubmitAuth", [result]);
113 } 109 }
114 110
115 function setElementDisplay(id, display) { 111 function setElementDisplay(id, display) {
116 var d = document.getElementById(id); 112 var d = document.getElementById(id);
117 if (d) 113 if (d)
118 d.style.display = display; 114 d.style.display = display;
119 } 115 }
120 116
121 function setBlurbError() { 117 function setBlurbError() {
122 var blurb = document.getElementById("top_blurb"); 118 document.getElementById("top_blurb").style.display = "none";
123 blurb.innerHTML = 119 document.getElementById("top_blurb_error").style.display = "block";
124 '<font size="-1">Setting up Bookmarks Sync<br/><br/><b>Error signing i n.</b></font>';
125 } 120 }
126 121
127 function resetErrorVisibility() { 122 function resetErrorVisibility() {
128 setElementDisplay("errormsg_0_Email", 'none'); 123 setElementDisplay("errormsg_0_Email", 'none');
129 setElementDisplay("errormsg_0_Password", 'none'); 124 setElementDisplay("errormsg_0_Password", 'none');
130 setElementDisplay("errormsg_1_Password", 'none'); 125 setElementDisplay("errormsg_1_Password", 'none');
131 setElementDisplay("errormsg_0_Connection", 'none'); 126 setElementDisplay("errormsg_0_Connection", 'none');
132 } 127 }
133 128
134 function setErrorVisibility() { 129 function setErrorVisibility() {
(...skipping 20 matching lines...) Expand all
155 .gaia.le.lbl { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } 150 .gaia.le.lbl { font-family: Arial, Helvetica, sans-serif; font-size: smaller; }
156 .gaia.le.fpwd { font-family: Arial, Helvetica, sans-serif; font-size: 70%; } 151 .gaia.le.fpwd { font-family: Arial, Helvetica, sans-serif; font-size: 70%; }
157 .gaia.le.chusr { font-family: Arial, Helvetica, sans-serif; font-size: 70%; } 152 .gaia.le.chusr { font-family: Arial, Helvetica, sans-serif; font-size: 70%; }
158 .gaia.le.val { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } 153 .gaia.le.val { font-family: Arial, Helvetica, sans-serif; font-size: smaller; }
159 .gaia.le.button { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } 154 .gaia.le.button { font-family: Arial, Helvetica, sans-serif; font-size: smaller; }
160 .gaia.le.rem { font-family: Arial, Helvetica, sans-serif; font-size: smaller; } 155 .gaia.le.rem { font-family: Arial, Helvetica, sans-serif; font-size: smaller; }
161 .gaia.captchahtml.desc { font-family: arial, sans-serif; font-size: smaller; } 156 .gaia.captchahtml.desc { font-family: arial, sans-serif; font-size: smaller; }
162 .gaia.captchahtml.cmt { font-family: arial, sans-serif; font-size: smaller; 157 .gaia.captchahtml.cmt { font-family: arial, sans-serif; font-size: smaller;
163 font-style: italic; } 158 font-style: italic; }
164 --></style> 159 --></style>
165 <p id="top_blurb"> <font size="-1"> 160 <div id="top_blurb">
166 Google Chrome can store your bookmark data with your Google account. 161 <p><font size="-1"><span i18n-content="introduction"></span></font></p>
167 Bookmarks that you create on this computer will instantly be made 162 </div>
168 available on all the computers synced to this account.</font></p> 163 <div id="top_blurb_error" style="display:none">
164 <p><font size="-1">
165 <span i18n-content="settingupsync"></span><br/><br/>
166 <b><span i18n-content="errorsigningin"></span></b>
167 </font></p>
168 </div>
169 <form id="gaia_loginform" onsubmit="sendCredentialsAndClose(); return false;"> 169 <form id="gaia_loginform" onsubmit="sendCredentialsAndClose(); return false;">
170 <div id="gaia_loginbox"> 170 <div id="gaia_loginbox">
171 <table class="form-noindent" cellspacing="3" cellpadding="5" width="100%" 171 <table class="form-noindent" cellspacing="3" cellpadding="5" width="100%"
172 border="0"> 172 border="0">
173 <tr> 173 <tr>
174 <td valign="top" style="text-align:center" nowrap="nowrap" 174 <td valign="top" style="text-align:center" nowrap="nowrap"
175 bgcolor="#e8eefa"> 175 bgcolor="#e8eefa">
176 <div class="loginBox"> 176 <div class="loginBox">
177 <table id="gaia_table" align="center" border="0" cellpadding="1" 177 <table id="gaia_table" align="center" border="0" cellpadding="1"
178 cellspacing="0"> 178 cellspacing="0">
179 <tr> 179 <tr>
180 <td colspan="2" align="center"> 180 <td colspan="2" align="center">
181 <font size="-1"> Sign in with your </font> 181 <font size="-1"><span i18n-content="signinwithyour"></span></font>
182 <table> 182 <table>
183 <tr> 183 <tr>
184 <td valign="top"> 184 <td valign="top">
185 <img src="google_transparent.png" alt="Google"> 185 <img src="google_transparent.png" alt="Google">
186 </img> 186 </img>
187 </td> 187 </td>
188 <td valign="middle"> 188 <td valign="middle">
189 <font size="+0"><b>Account</b> </font> 189 <font size="+0"><b>
190 <span i18n-content="accountlabel"></span>
191 </b></font>
190 </td> 192 </td>
191 </tr> 193 </tr>
192 </table> 194 </table>
193 </td> 195 </td>
194 </tr> 196 </tr>
195 <script type="text/javascript"><!-- 197 <script type="text/javascript"><!--
196 function onPreCreateAccount() { 198 function onPreCreateAccount() {
197 return true; 199 return true;
198 } 200 }
199 function onPreLogin() { 201 function onPreLogin() {
200 if (window["onlogin"] != null) { 202 if (window["onlogin"] != null) {
201 return onlogin(); 203 return onlogin();
202 } else { 204 } else {
203 return true; 205 return true;
204 } 206 }
205 } 207 }
206 --></script> 208 --></script>
207 <tr> 209 <tr>
208 <td colspan="2" align="center"> </td> 210 <td colspan="2" align="center"> </td>
209 </tr> 211 </tr>
210 <tr> 212 <tr>
211 <td nowrap="nowrap"> 213 <td nowrap="nowrap">
212 <div align="right"> 214 <div align="right">
213 <span class="gaia le lbl"> 215 <span class="gaia le lbl" i18n-content="emaillabel">
214 Email:
215 </span> 216 </span>
216 </div> 217 </div>
217 </td> 218 </td>
218 <td> 219 <td>
219 <input type="text" name="Email" id="Email" size="18" 220 <input type="text" name="Email" id="Email" size="18"
220 value="" class='gaia le val' /> 221 value="" class='gaia le val' />
221 </td> 222 </td>
222 </tr> 223 </tr>
223 <tr> 224 <tr>
224 <td></td> 225 <td></td>
225 <td align="left"> 226 <td align="left">
226 <div class="errormsg" id="errormsg_0_Email"> 227 <div class="errormsg" id="errormsg_0_Email"
227 Required field cannot be left blank 228 i18n-content="cannotbeblank">
228 </div> 229 </div>
229 </td> 230 </td>
230 </tr> 231 </tr>
231 <tr> 232 <tr>
232 <td></td> 233 <td></td>
233 <td align="left"> </td> 234 <td align="left"> </td>
234 </tr> 235 </tr>
235 <tr> 236 <tr>
236 <td align="right"> 237 <td align="right">
237 <span class="gaia le lbl"> 238 <span class="gaia le lbl" i18n-content="passwordlabel">
238 Password:
239 </span> 239 </span>
240 </td> 240 </td>
241 <td> 241 <td>
242 <input type="password" name="Passwd" id="Passwd" size="18" 242 <input type="password" name="Passwd" id="Passwd" size="18"
243 class="gaia le val"/> 243 class="gaia le val"/>
244 </td> 244 </td>
245 </tr> 245 </tr>
246 <tr> 246 <tr>
247 <td></td> 247 <td></td>
248 <td align="left"> 248 <td align="left">
249 <div class="errormsg" id="errormsg_0_Password"> 249 <div class="errormsg" id="errormsg_0_Password"
250 Required field cannot be left blank 250 i18n-content="cannotbeblank">
251 </div> 251 </div>
252 </td> 252 </td>
253 </tr> 253 </tr>
254 <tr> 254 <tr>
255 <td> 255 <td>
256 </td> 256 </td>
257 <td align="left"> 257 <td align="left">
258 <div class="errormsg" id="errormsg_1_Password"> » 258 <div class="errormsg" id="errormsg_1_Password">
259 <span i18n-content="invalidcredentials"></span>[<a href="http://ww w.google.com/support/accounts/bin/answer.py?ctx=ch&answer=27444">?</a>]
259 </div> 260 </div>
260 </td> 261 </td>
261 </tr> 262 </tr>
262 <tr> 263 <tr>
263 <td> 264 <td>
264 </td> 265 </td>
265 <td align="left"> 266 <td align="left">
266 <div class="errormsg" id="errormsg_0_Connection"> » 267 <div class="errormsg" id="errormsg_0_Connection"
267 Could not connect to the server 268 i18n-content="couldnotconnect">
268 </div> 269 </div>
269 </td> 270 </td>
270 </tr> 271 </tr>
271 <tr> 272 <tr>
272 <td> 273 <td>
273 </td> 274 </td>
274 <td align="left"> 275 <td align="left">
275 </td> 276 </td>
276 </tr> 277 </tr>
277 <tr> 278 <tr>
(...skipping 15 matching lines...) Expand all
293 onclick="sendCredentialsAndClose();" /> 294 onclick="sendCredentialsAndClose();" />
294 </td> 295 </td>
295 </tr> 296 </tr>
296 </table> 297 </table>
297 </td> 298 </td>
298 </tr> 299 </tr>
299 <tr id="ga-fprow"> 300 <tr id="ga-fprow">
300 <td colspan="2" height="16.0" class="gaia le fpwd" 301 <td colspan="2" height="16.0" class="gaia le fpwd"
301 align="center" valign="bottom"> 302 align="center" valign="bottom">
302 <a href="http://www.google.com/support/accounts/bin/answer.py?answ er=48598&hl=en&fpUrl=https%3A%2F%2Fwww.google.com%2Faccounts%2FForgotPasswd%3Ffp Only%3D1%26service%3Dchromiumsync" 303 <a href="http://www.google.com/support/accounts/bin/answer.py?answ er=48598&hl=en&fpUrl=https%3A%2F%2Fwww.google.com%2Faccounts%2FForgotPasswd%3Ffp Only%3D1%26service%3Dchromiumsync"
303 target=_blank> 304 target=_blank i18n-content="cannotaccessaccount">
304 I cannot access my account
305 </a> 305 </a>
306 </td> 306 </td>
307 </tr> 307 </tr>
308 <tr> 308 <tr>
309 <td colspan="2" height="16.0" class="gaia le fpwd" 309 <td colspan="2" height="16.0" class="gaia le fpwd"
310 align="center" valign="bottom"> 310 align="center" valign="bottom">
311 <a href="javascript:var popup=window.open('https%3A%5Cx2F%5Cx2Fwww .google.com%5Cx2Faccounts%5Cx2FNewAccount%3Fservice%3Dchromiumsync', 'NewAccount ', 'height=870,width=870,resizable=yes,scrollbars=yes');"> 311 <a href="javascript:var popup=window.open('https%3A%5Cx2F%5Cx2Fwww .google.com%5Cx2Faccounts%5Cx2FNewAccount%3Fservice%3Dchromiumsync', 'NewAccount ', 'height=870,width=870,resizable=yes,scrollbars=yes');"
312 Create a Google account 312 i18n-content="createaccount">
313 </a> 313 </a>
314 </td> 314 </td>
315 </tr> 315 </tr>
316 </table> 316 </table>
317 </div> 317 </div>
318 </td> 318 </td>
319 </tr> 319 </tr>
320 </table> 320 </table>
321 </div> 321 </div>
322 </form> 322 </form>
323 </td> 323 </td>
324 </tr> 324 </tr>
325 </table> 325 </table>
326 <div align="right"> 326 <div align="right">
327 <input type="button" name="cancel" value="Cancel" onclick="CloseDialog();"/ > 327 <input type="button" name="cancel" value="Cancel" onclick="CloseDialog();"/ >
328 </div> 328 </div>
329 </table> 329 </table>
330 </body> 330 </body>
331 </html> 331 </html>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/sync/sync_setup_wizard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698