setup.xul 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. <?xml version="1.0"?>
  2. <!-- This Source Code Form is subject to the terms of the Mozilla Public
  3. - License, v. 2.0. If a copy of the MPL was not distributed with this
  4. - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
  5. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  6. <?xml-stylesheet href="chrome://browser/skin/syncSetup.css" type="text/css"?>
  7. <?xml-stylesheet href="chrome://browser/skin/syncCommon.css" type="text/css"?>
  8. <!DOCTYPE window [
  9. <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
  10. <!ENTITY % syncBrandDTD SYSTEM "chrome://browser/locale/syncBrand.dtd">
  11. <!ENTITY % syncSetupDTD SYSTEM "chrome://browser/locale/syncSetup.dtd">
  12. %brandDTD;
  13. %syncBrandDTD;
  14. %syncSetupDTD;
  15. ]>
  16. <wizard id="wizard"
  17. title="&accountSetupTitle.label;"
  18. windowtype="Weave:AccountSetup"
  19. persist="screenX screenY"
  20. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  21. xmlns:html="http://www.w3.org/1999/xhtml"
  22. onwizardnext="return gSyncSetup.onWizardAdvance()"
  23. onwizardback="return gSyncSetup.onWizardBack()"
  24. onwizardcancel="gSyncSetup.onWizardCancel()"
  25. onload="gSyncSetup.init()">
  26. <script type="application/javascript"
  27. src="chrome://browser/content/sync/setup.js"/>
  28. <script type="application/javascript"
  29. src="chrome://browser/content/sync/utils.js"/>
  30. <script type="application/javascript"
  31. src="chrome://browser/content/utilityOverlay.js"/>
  32. <script type="application/javascript"
  33. src="chrome://global/content/printUtils.js"/>
  34. <wizardpage id="addDevicePage"
  35. label="&pairDevice.title.label;"
  36. onpageshow="gSyncSetup.onPageShow()">
  37. <description>
  38. &pairDevice.dialog.description.label;
  39. <label class="text-link"
  40. value="&addDevice.showMeHow.label;"
  41. href="http://www.palemoon.org/sync/help/easy-setup.shtml"/>
  42. </description>
  43. <separator class="groove-thin"/>
  44. <description>
  45. &addDevice.dialog.enterCode.label;
  46. </description>
  47. <separator class="groove-thin"/>
  48. <vbox align="center">
  49. <textbox id="pin1"
  50. class="pin"
  51. oninput="gSyncSetup.onPINInput(this);"
  52. onfocus="this.select();"
  53. />
  54. <textbox id="pin2"
  55. class="pin"
  56. oninput="gSyncSetup.onPINInput(this);"
  57. onfocus="this.select();"
  58. />
  59. <textbox id="pin3"
  60. class="pin"
  61. oninput="gSyncSetup.onPINInput(this);"
  62. onfocus="this.select();"
  63. />
  64. </vbox>
  65. <separator class="groove-thin"/>
  66. <vbox id="pairDeviceThrobber" align="center" hidden="true">
  67. <image/>
  68. </vbox>
  69. <hbox id="pairDeviceErrorRow" pack="center" hidden="true">
  70. <image class="statusIcon" status="error"/>
  71. <label class="status"
  72. value="&addDevice.dialog.tryAgain.label;"/>
  73. </hbox>
  74. </wizardpage>
  75. <wizardpage id="pickSetupType"
  76. label="&syncBrand.fullName.label;"
  77. onpageshow="gSyncSetup.onPageShow()">
  78. <vbox align="center" flex="1">
  79. <description style="padding: 0 7em;">
  80. &setup.pickSetupType.description2;
  81. </description>
  82. <spacer flex="3"/>
  83. <button id="newAccount"
  84. class="accountChoiceButton"
  85. label="&button.createNewAccount.label;"
  86. oncommand="gSyncSetup.startNewAccountSetup()"
  87. align="center"/>
  88. <spacer flex="1"/>
  89. </vbox>
  90. <separator class="groove"/>
  91. <vbox align="center" flex="1">
  92. <spacer flex="1"/>
  93. <button id="existingAccount"
  94. class="accountChoiceButton"
  95. label="&button.haveAccount.label;"
  96. oncommand="gSyncSetup.useExistingAccount()"/>
  97. <spacer flex="3"/>
  98. </vbox>
  99. </wizardpage>
  100. <wizardpage label="&setup.newAccountDetailsPage.title.label;"
  101. id="newAccountStart"
  102. onextra1="gSyncSetup.onSyncOptions()"
  103. onpageshow="gSyncSetup.onPageShow();">
  104. <grid>
  105. <columns>
  106. <column/>
  107. <column class="inputColumn" flex="1"/>
  108. </columns>
  109. <rows>
  110. <row id="emailRow" align="center">
  111. <label value="&setup.emailAddress.label;"
  112. accesskey="&setup.emailAddress.accesskey;"
  113. control="weaveEmail"/>
  114. <textbox id="weaveEmail"
  115. oninput="gSyncSetup.onEmailInput()"/>
  116. </row>
  117. <row id="emailFeedbackRow" align="center" hidden="true">
  118. <spacer/>
  119. <hbox>
  120. <image class="statusIcon"/>
  121. <label class="status" value=" "/>
  122. </hbox>
  123. </row>
  124. <row id="passwordRow" align="center">
  125. <label value="&setup.choosePassword.label;"
  126. accesskey="&setup.choosePassword.accesskey;"
  127. control="weavePassword"/>
  128. <textbox id="weavePassword"
  129. type="password"
  130. onchange="gSyncSetup.onPasswordChange()"/>
  131. </row>
  132. <row id="confirmRow" align="center">
  133. <label value="&setup.confirmPassword.label;"
  134. accesskey="&setup.confirmPassword.accesskey;"
  135. control="weavePasswordConfirm"/>
  136. <textbox id="weavePasswordConfirm"
  137. type="password"
  138. onchange="gSyncSetup.onPasswordChange()"/>
  139. </row>
  140. <row id="passwordFeedbackRow" align="center" hidden="true">
  141. <spacer/>
  142. <hbox>
  143. <image class="statusIcon"/>
  144. <label class="status" value=" "/>
  145. </hbox>
  146. </row>
  147. <row align="center">
  148. <label control="server"
  149. value="&server.label;"/>
  150. <menulist id="server"
  151. oncommand="gSyncSetup.onServerCommand()"
  152. oninput="gSyncSetup.onServerInput()">
  153. <menupopup>
  154. <menuitem label="&serverType.default.label;"
  155. value="main"/>
  156. <menuitem label="&serverType.custom2.label;"
  157. value="custom"/>
  158. </menupopup>
  159. </menulist>
  160. </row>
  161. <row id="serverFeedbackRow" align="center" hidden="true">
  162. <spacer/>
  163. <hbox>
  164. <image class="statusIcon"/>
  165. <label class="status" value=" "/>
  166. </hbox>
  167. </row>
  168. <row id="TOSRow" align="center">
  169. <spacer/>
  170. <hbox align="center">
  171. <checkbox id="tos"
  172. accesskey="&setup.tosAgree1.accesskey;"
  173. oncommand="this.focus(); gSyncSetup.checkFields();"/>
  174. <description id="tosDesc"
  175. flex="1"
  176. onclick="document.getElementById('tos').focus();
  177. document.getElementById('tos').click()">
  178. &setup.tosAgree1.label;
  179. <label class="text-link inline-link"
  180. onclick="event.stopPropagation();gSyncUtils.openToS();">
  181. &setup.tosLink.label;
  182. </label>
  183. &setup.tosAgree2.label;
  184. <label class="text-link inline-link"
  185. onclick="event.stopPropagation();gSyncUtils.openPrivacyPolicy();">
  186. &setup.ppLink.label;
  187. </label>
  188. &setup.tosAgree3.label;
  189. </description>
  190. </hbox>
  191. </row>
  192. </rows>
  193. </grid>
  194. <spacer flex="1"/>
  195. <vbox flex="1" align="center">
  196. <browser height="150"
  197. width="500"
  198. id="captcha"
  199. type="content"
  200. disablehistory="true"/>
  201. <spacer flex="1"/>
  202. <hbox id="captchaFeedback">
  203. <image class="statusIcon"/>
  204. <label class="status" value=" "/>
  205. </hbox>
  206. </vbox>
  207. </wizardpage>
  208. <wizardpage id="addDevice"
  209. label="&pairDevice.title.label;"
  210. onextra1="gSyncSetup.onSyncOptions()"
  211. onpageshow="gSyncSetup.onPageShow()">
  212. <description>
  213. &pairDevice.setup.description.label;
  214. <label class="text-link"
  215. value="&addDevice.showMeHow.label;"
  216. href="http://www.palemoon.org/sync/help/easy-setup.shtml"/>
  217. </description>
  218. <label value="&addDevice.setup.enterCode.label;"
  219. control="easySetupPIN1"/>
  220. <spacer flex="1"/>
  221. <vbox align="center" flex="1">
  222. <textbox id="easySetupPIN1"
  223. class="pin"
  224. value=""
  225. readonly="true"
  226. />
  227. <textbox id="easySetupPIN2"
  228. class="pin"
  229. value=""
  230. readonly="true"
  231. />
  232. <textbox id="easySetupPIN3"
  233. class="pin"
  234. value=""
  235. readonly="true"
  236. />
  237. </vbox>
  238. <spacer flex="3"/>
  239. <label class="text-link"
  240. value="&addDevice.dontHaveDevice.label;"
  241. onclick="gSyncSetup.manualSetup();"/>
  242. </wizardpage>
  243. <wizardpage id="existingAccount"
  244. label="&setup.signInPage.title.label;"
  245. onextra1="gSyncSetup.onSyncOptions()"
  246. onpageshow="gSyncSetup.onPageShow()">
  247. <grid>
  248. <columns>
  249. <column/>
  250. <column class="inputColumn" flex="1"/>
  251. </columns>
  252. <rows>
  253. <row id="existingAccountRow" align="center">
  254. <label id="existingAccountLabel"
  255. value="&signIn.account2.label;"
  256. accesskey="&signIn.account2.accesskey;"
  257. control="existingAccount"/>
  258. <textbox id="existingAccountName"
  259. oninput="gSyncSetup.checkFields(event)"
  260. onchange="gSyncSetup.checkFields(event)"/>
  261. </row>
  262. <row id="existingPasswordRow" align="center">
  263. <label id="existingPasswordLabel"
  264. value="&signIn.password.label;"
  265. accesskey="&signIn.password.accesskey;"
  266. control="existingPassword"/>
  267. <textbox id="existingPassword"
  268. type="password"
  269. onkeyup="gSyncSetup.checkFields(event)"
  270. onchange="gSyncSetup.checkFields(event)"/>
  271. </row>
  272. <row id="existingPasswordFeedbackRow" align="center" hidden="true">
  273. <spacer/>
  274. <hbox>
  275. <image class="statusIcon"/>
  276. <label class="status" value=" "/>
  277. </hbox>
  278. </row>
  279. <row align="center">
  280. <spacer/>
  281. <label class="text-link"
  282. value="&resetPassword.label;"
  283. onclick="gSyncUtils.resetPassword(); return false;"/>
  284. </row>
  285. <row align="center">
  286. <label control="existingServer"
  287. value="&server.label;"/>
  288. <menulist id="existingServer"
  289. oncommand="gSyncSetup.onExistingServerCommand()"
  290. oninput="gSyncSetup.onExistingServerInput()">
  291. <menupopup>
  292. <menuitem label="&serverType.default.label;"
  293. value="main"/>
  294. <menuitem label="&serverType.custom2.label;"
  295. value="custom"/>
  296. </menupopup>
  297. </menulist>
  298. </row>
  299. <row id="existingServerFeedbackRow" align="center" hidden="true">
  300. <spacer/>
  301. <hbox>
  302. <image class="statusIcon"/>
  303. <vbox>
  304. <label class="status" value=" "/>
  305. </vbox>
  306. </hbox>
  307. </row>
  308. </rows>
  309. </grid>
  310. <groupbox>
  311. <label id="existingPassphraseLabel"
  312. value="&signIn.recoveryKey.label;"
  313. accesskey="&signIn.recoveryKey.accesskey;"
  314. control="existingPassphrase"/>
  315. <textbox id="existingPassphrase"
  316. oninput="gSyncSetup.checkFields()"/>
  317. <hbox id="login-throbber" hidden="true">
  318. <image/>
  319. <label value="&verifying.label;"/>
  320. </hbox>
  321. <vbox align="left" id="existingPassphraseFeedbackRow" hidden="true">
  322. <hbox>
  323. <image class="statusIcon"/>
  324. <label class="status" value=" "/>
  325. </hbox>
  326. </vbox>
  327. </groupbox>
  328. <vbox id="passphraseHelpBox">
  329. <description>
  330. &existingRecoveryKey.description;
  331. <label class="text-link"
  332. href="http://www.palemoon.org/sync/help/recoverykey.shtml">
  333. &addDevice.showMeHow.label;
  334. </label>
  335. <spacer id="passphraseHelpSpacer"/>
  336. <label class="text-link"
  337. onclick="gSyncSetup.resetPassphrase(); return false;">
  338. &resetSyncKey.label;
  339. </label>
  340. </description>
  341. </vbox>
  342. </wizardpage>
  343. <wizardpage id="syncOptionsPage"
  344. label="&setup.optionsPage.title;"
  345. onpageshow="gSyncSetup.onPageShow()">
  346. <groupbox id="syncOptions">
  347. <grid>
  348. <columns>
  349. <column/>
  350. <column flex="1" style="-moz-margin-end: 2px"/>
  351. </columns>
  352. <rows>
  353. <row align="center">
  354. <label value="&syncDeviceName.label;"
  355. accesskey="&syncDeviceName.accesskey;"
  356. control="syncComputerName"/>
  357. <textbox id="syncComputerName" flex="1"
  358. onchange="gSyncUtils.changeName(this)"/>
  359. </row>
  360. <row>
  361. <label value="&syncMy.label;" />
  362. <vbox>
  363. <checkbox label="&engine.addons.label;"
  364. accesskey="&engine.addons.accesskey;"
  365. id="engine.addons"
  366. checked="false"
  367. hidden="true"/>
  368. <checkbox label="&engine.bookmarks.label;"
  369. accesskey="&engine.bookmarks.accesskey;"
  370. id="engine.bookmarks"
  371. checked="true"/>
  372. <checkbox label="&engine.passwords.label;"
  373. accesskey="&engine.passwords.accesskey;"
  374. id="engine.passwords"
  375. checked="true"/>
  376. <checkbox label="&engine.prefs.label;"
  377. accesskey="&engine.prefs.accesskey;"
  378. id="engine.prefs"
  379. checked="true"/>
  380. <checkbox label="&engine.history.label;"
  381. accesskey="&engine.history.accesskey;"
  382. id="engine.history"
  383. checked="true"/>
  384. <checkbox label="&engine.tabs.label;"
  385. accesskey="&engine.tabs.accesskey;"
  386. id="engine.tabs"
  387. checked="true"/>
  388. </vbox>
  389. </row>
  390. </rows>
  391. </grid>
  392. </groupbox>
  393. <groupbox id="mergeOptions">
  394. <radiogroup id="mergeChoiceRadio" pack="start">
  395. <grid>
  396. <columns>
  397. <column/>
  398. <column flex="1"/>
  399. </columns>
  400. <rows flex="1">
  401. <row align="center">
  402. <radio id="resetClient"
  403. class="mergeChoiceButton"
  404. aria-labelledby="resetClientLabel"/>
  405. <label id="resetClientLabel" control="resetClient">
  406. <html:strong>&choice2.merge.recommended.label;</html:strong>
  407. &choice2a.merge.main.label;
  408. </label>
  409. </row>
  410. <row align="center">
  411. <radio id="wipeClient"
  412. class="mergeChoiceButton"
  413. aria-labelledby="wipeClientLabel"/>
  414. <label id="wipeClientLabel"
  415. control="wipeClient">
  416. &choice2a.client.main.label;
  417. </label>
  418. </row>
  419. <row align="center">
  420. <radio id="wipeRemote"
  421. class="mergeChoiceButton"
  422. aria-labelledby="wipeRemoteLabel"/>
  423. <label id="wipeRemoteLabel"
  424. control="wipeRemote">
  425. &choice2a.server.main.label;
  426. </label>
  427. </row>
  428. </rows>
  429. </grid>
  430. </radiogroup>
  431. </groupbox>
  432. </wizardpage>
  433. <wizardpage id="syncOptionsConfirm"
  434. label="&setup.optionsConfirmPage.title;"
  435. onpageshow="gSyncSetup.onPageShow()">
  436. <deck id="chosenActionDeck">
  437. <vbox id="chosenActionMerge" class="confirm">
  438. <description class="normal">
  439. &confirm.merge2.label;
  440. </description>
  441. </vbox>
  442. <vbox id="chosenActionWipeClient" class="confirm">
  443. <description class="normal">
  444. &confirm.client3.label;
  445. </description>
  446. <separator class="thin"/>
  447. <vbox id="dataList">
  448. <label class="data indent" id="bookmarkCount"/>
  449. <label class="data indent" id="historyCount"/>
  450. <label class="data indent" id="passwordCount"/>
  451. <label class="data indent" id="addonCount"/>
  452. <label class="data indent" id="prefsWipe"
  453. value="&engine.prefs.label;"/>
  454. </vbox>
  455. <separator class="thin"/>
  456. <description class="normal">
  457. &confirm.client2.moreinfo.label;
  458. </description>
  459. </vbox>
  460. <vbox id="chosenActionWipeServer" class="confirm">
  461. <description class="normal">
  462. &confirm.server2.label;
  463. </description>
  464. <separator class="thin"/>
  465. <vbox id="clientList">
  466. </vbox>
  467. </vbox>
  468. </deck>
  469. </wizardpage>
  470. <!-- In terms of the wizard flow shown to the user, the 'syncOptionsConfirm'
  471. page above is not the last wizard page. To prevent the wizard binding from
  472. assuming that it is, we're inserting this dummy page here. This also means
  473. that the wizard needs to always be closed manually via wizardFinish(). -->
  474. <wizardpage>
  475. </wizardpage>
  476. </wizard>