genericChange.xul 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  17. xmlns:html="http://www.w3.org/1999/xhtml"
  18. id="change-dialog"
  19. windowtype="Weave:ChangeSomething"
  20. persist="screenX screenY"
  21. onwizardnext="Change.onLoad()"
  22. onwizardfinish="return Change.onDialogAccept();">
  23. <script type="application/javascript"
  24. src="chrome://browser/content/sync/genericChange.js"/>
  25. <script type="application/javascript"
  26. src="chrome://browser/content/sync/utils.js"/>
  27. <script type="application/javascript"
  28. src="chrome://global/content/printUtils.js"/>
  29. <wizardpage id="change-page"
  30. label="">
  31. <description id="introText">
  32. </description>
  33. <separator class="thin"/>
  34. <groupbox>
  35. <grid>
  36. <columns>
  37. <column align="right"/>
  38. <column flex="3"/>
  39. <column flex="1"/>
  40. </columns>
  41. <rows>
  42. <row id="textBox1Row" align="center">
  43. <label id="textBox1Label" control="textBox1"/>
  44. <textbox id="textBox1" type="password" oninput="Change.validate()"/>
  45. <spacer/>
  46. </row>
  47. <row id="textBox2Row" align="center">
  48. <label id="textBox2Label" control="textBox2"/>
  49. <textbox id="textBox2" type="password" oninput="Change.validate()"/>
  50. <spacer/>
  51. </row>
  52. </rows>
  53. </grid>
  54. <vbox id="passphraseRow">
  55. <hbox flex="1">
  56. <label id="passphraseLabel" control="passphraseBox"/>
  57. <spacer flex="1"/>
  58. <label id="generatePassphraseButton"
  59. hidden="true"
  60. value="&syncGenerateNewKey.label;"
  61. class="text-link inline-link"
  62. onclick="event.stopPropagation();
  63. Change.doGeneratePassphrase();"/>
  64. </hbox>
  65. <textbox id="passphraseBox"
  66. flex="1"
  67. onfocus="this.select()"
  68. oninput="Change.validate()"/>
  69. </vbox>
  70. <vbox id="feedback" pack="center">
  71. <hbox id="statusRow" align="center">
  72. <image id="statusIcon" class="statusIcon"/>
  73. <label id="status" class="status" value=" "/>
  74. </hbox>
  75. </vbox>
  76. </groupbox>
  77. <separator class="thin"/>
  78. <hbox id="passphraseBackupButtons"
  79. hidden="true"
  80. pack="center">
  81. <button id="printSyncKeyButton"
  82. label="&button.syncKeyBackup.print.label;"
  83. accesskey="&button.syncKeyBackup.print.accesskey;"
  84. oncommand="gSyncUtils.passphrasePrint('passphraseBox');"/>
  85. <button id="saveSyncKeyButton"
  86. label="&button.syncKeyBackup.save.label;"
  87. accesskey="&button.syncKeyBackup.save.accesskey;"
  88. oncommand="gSyncUtils.passphraseSave('passphraseBox');"/>
  89. </hbox>
  90. <vbox id="passphraseHelpBox"
  91. hidden="true">
  92. <description>
  93. &existingRecoveryKey.description;
  94. <label class="text-link"
  95. href="http://www.palemoon.org/sync/help/recoverykey.shtml">
  96. &addDevice.showMeHow.label;
  97. </label>
  98. </description>
  99. </vbox>
  100. <spacer id="passphraseSpacer"
  101. flex="1"
  102. hidden="true"/>
  103. <description id="warningText" class="data">
  104. </description>
  105. <spacer flex="1"/>
  106. </wizardpage>
  107. </wizard>