browser/base/content/sync/genericChange.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/base/content/sync/genericChange.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,123 @@
     1.4 +<?xml version="1.0"?>
     1.5 +
     1.6 +<!-- This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +   - License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     1.9 +
    1.10 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
    1.11 +<?xml-stylesheet href="chrome://browser/skin/syncSetup.css" type="text/css"?>
    1.12 +<?xml-stylesheet href="chrome://browser/skin/syncCommon.css" type="text/css"?>
    1.13 +
    1.14 +<!DOCTYPE window [
    1.15 +<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
    1.16 +<!ENTITY % syncBrandDTD SYSTEM "chrome://browser/locale/syncBrand.dtd">
    1.17 +<!ENTITY % syncSetupDTD SYSTEM "chrome://browser/locale/syncSetup.dtd">
    1.18 +%brandDTD;
    1.19 +%syncBrandDTD;
    1.20 +%syncSetupDTD;
    1.21 +]>
    1.22 +<wizard xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
    1.23 +        xmlns:html="http://www.w3.org/1999/xhtml"
    1.24 +        id="change-dialog"
    1.25 +        windowtype="Weave:ChangeSomething"
    1.26 +        persist="screenX screenY"
    1.27 +        onwizardnext="Change.onLoad()"
    1.28 +        onwizardfinish="return Change.onDialogAccept();">
    1.29 +
    1.30 +  <script type="application/javascript"
    1.31 +          src="chrome://browser/content/sync/genericChange.js"/>
    1.32 +  <script type="application/javascript"
    1.33 +          src="chrome://browser/content/sync/utils.js"/>
    1.34 +  <script type="application/javascript"
    1.35 +          src="chrome://global/content/printUtils.js"/>
    1.36 +
    1.37 +  <wizardpage id="change-page"
    1.38 +              label="">
    1.39 +
    1.40 +    <description id="introText">
    1.41 +    </description>
    1.42 +
    1.43 +    <separator class="thin"/>
    1.44 +
    1.45 +    <groupbox>
    1.46 +      <grid>
    1.47 +        <columns>
    1.48 +          <column align="right"/>
    1.49 +          <column flex="3"/>
    1.50 +          <column flex="1"/>
    1.51 +        </columns>
    1.52 +        <rows>
    1.53 +          <row id="textBox1Row" align="center">
    1.54 +            <label id="textBox1Label" control="textBox1"/>
    1.55 +            <textbox id="textBox1" type="password" oninput="Change.validate()"/>
    1.56 +            <spacer/>
    1.57 +          </row>
    1.58 +          <row id="textBox2Row" align="center">
    1.59 +            <label id="textBox2Label" control="textBox2"/>
    1.60 +            <textbox id="textBox2" type="password" oninput="Change.validate()"/>
    1.61 +            <spacer/>
    1.62 +          </row>
    1.63 +        </rows>
    1.64 +      </grid>
    1.65 +
    1.66 +      <vbox id="passphraseRow">
    1.67 +        <hbox flex="1">
    1.68 +          <label id="passphraseLabel" control="passphraseBox"/>
    1.69 +          <spacer flex="1"/>
    1.70 +          <label id="generatePassphraseButton"
    1.71 +                 hidden="true"
    1.72 +                 value="&syncGenerateNewKey.label;"
    1.73 +                 class="text-link inline-link"
    1.74 +                 onclick="event.stopPropagation();
    1.75 +                          Change.doGeneratePassphrase();"/>
    1.76 +        </hbox>
    1.77 +        <textbox id="passphraseBox"
    1.78 +                 flex="1"
    1.79 +                 onfocus="this.select()"
    1.80 +                 oninput="Change.validate()"/>
    1.81 +      </vbox>
    1.82 +
    1.83 +      <vbox id="feedback" pack="center">
    1.84 +        <hbox id="statusRow" align="center">
    1.85 +          <image id="statusIcon" class="statusIcon"/>
    1.86 +          <label id="status" class="status" value=" "/>
    1.87 +        </hbox>
    1.88 +      </vbox>
    1.89 +    </groupbox>
    1.90 +
    1.91 +    <separator class="thin"/>
    1.92 +
    1.93 +    <hbox id="passphraseBackupButtons"
    1.94 +          hidden="true"
    1.95 +          pack="center">
    1.96 +      <button id="printSyncKeyButton"
    1.97 +              label="&button.syncKeyBackup.print.label;"
    1.98 +              accesskey="&button.syncKeyBackup.print.accesskey;"
    1.99 +              oncommand="gSyncUtils.passphrasePrint('passphraseBox');"/>
   1.100 +      <button id="saveSyncKeyButton"
   1.101 +              label="&button.syncKeyBackup.save.label;"
   1.102 +              accesskey="&button.syncKeyBackup.save.accesskey;"
   1.103 +              oncommand="gSyncUtils.passphraseSave('passphraseBox');"/>
   1.104 +    </hbox>
   1.105 +
   1.106 +    <vbox id="passphraseHelpBox"
   1.107 +          hidden="true">
   1.108 +      <description>
   1.109 +        &existingRecoveryKey.description;
   1.110 +        <label class="text-link"
   1.111 +               href="https://services.mozilla.com/sync/help/manual-setup">
   1.112 +          &addDevice.showMeHow.label;
   1.113 +        </label>
   1.114 +      </description>
   1.115 +    </vbox>
   1.116 +
   1.117 +    <spacer id="passphraseSpacer"
   1.118 +            flex="1"
   1.119 +            hidden="true"/>
   1.120 +
   1.121 +    <description id="warningText" class="data">
   1.122 +    </description>
   1.123 +
   1.124 +    <spacer flex="1"/>
   1.125 +  </wizardpage>
   1.126 +</wizard>

mercurial