summaryrefslogtreecommitdiffstats
path: root/browser/components/preferences/sync.inc.xhtml
blob: 7df27eb9946b860cfb8bd0367818c6aeb2c29800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

<!-- Sync panel -->

<script src="chrome://browser/content/preferences/sync.js"/>
<html:template id="template-paneSync">
<hbox id="firefoxAccountCategory"
      class="subcategory"
      hidden="true"
      data-category="paneSync">
  <html:h1 data-l10n-id="pane-sync-title3"/>
</hbox>

<deck id="weavePrefsDeck" data-category="paneSync" hidden="true"
      data-hidden-from-search="true">
  <groupbox id="noFxaAccount">
    <hbox>
      <vbox flex="1">
        <label id="noFxaCaption"><html:h2 data-l10n-id="sync-signedout-caption"/></label>
        <description id="noFxaDescription" flex="1" data-l10n-id="sync-signedout-description2"/>
      </vbox>
      <vbox>
        <image class="fxaSyncIllustration"/>
      </vbox>
    </hbox>
    <hbox id="fxaNoLoginStatus" align="center" flex="1">
      <vbox flex="1">
        <hbox align="center" flex="1">
          <button id="noFxaSignIn"
                  is="highlightable-button"
                  class="accessory-button"
                  data-l10n-id="sync-signedout-account-signin3"/>
        </hbox>
      </vbox>
    </hbox>
    <label class="fxaMobilePromo" data-l10n-id="sync-mobile-promo">
      <html:img
        src="chrome://browser/skin/logo-android.svg"
        data-l10n-name="android-icon"
        class="androidIcon"/>
      <html:a
        data-l10n-name="android-link"
        class="fxaMobilePromo-android text-link" target="_blank"/>
      <html:img
        src="chrome://browser/skin/logo-ios.svg"
        data-l10n-name="ios-icon"
        class="iOSIcon"/>
      <html:a
        data-l10n-name="ios-link"
        class="fxaMobilePromo-ios text-link" target="_blank"/>
    </label>
  </groupbox>

  <vbox id="hasFxaAccount">
    <hbox>
      <vbox id="fxaContentWrapper" flex="1">
        <groupbox id="fxaGroup">
          <label class="search-header" hidden="true"><html:h2 data-l10n-id="pane-sync-title3"/></label>

          <deck id="fxaLoginStatus" flex="1">

            <!-- logged in and verified and all is good -->
            <hbox id="fxaLoginVerified" align="center" flex="1">
              <image id="openChangeProfileImage"
                     class="fxaProfileImage actionable"
                     role="button"
                     data-l10n-id="sync-profile-picture"/>
              <vbox flex="1" pack="center">
                <hbox flex="1" align="baseline">
                  <label id="fxaDisplayName" hidden="true">
                    <html:h2 id="fxaDisplayNameHeading"/>
                  </label>
                  <label id="fxaEmailAddress" flex="1" crop="end"/>
                  <button id="fxaUnlinkButton"
                          is="highlightable-button"
                          class="accessory-button"
                          data-l10n-id="sync-sign-out"/>
                </hbox>
                <hbox>
                  <html:a id="verifiedManage" class="openLink" target="_blank"
                          data-l10n-id="sync-manage-account"/>
                </hbox>
              </vbox>
            </hbox>

            <!-- logged in to an unverified account -->
            <hbox id="fxaLoginUnverified">
              <vbox>
                <image class="fxaProfileImage"/>
              </vbox>
              <vbox flex="1" pack="center">
                <hbox align="center">
                  <image class="fxaLoginRejectedWarning"/>
                  <description flex="1"
                    class="l10nArgsEmailAddress"
                    data-l10n-id="sync-signedin-unverified"
                    data-l10n-args='{"email": ""}'/>
                </hbox>
                <hbox class="fxaAccountBoxButtons">
                  <button id="verifyFxaAccount"
                          is="highlightable-button"
                          data-l10n-id="sync-resend-verification"/>
                  <button id="unverifiedUnlinkFxaAccount"
                          is="highlightable-button"
                          data-l10n-id="sync-remove-account"/>
                </hbox>
              </vbox>
            </hbox>

            <!-- logged in locally but server rejected credentials -->
            <hbox id="fxaLoginRejected">
              <vbox>
                <image class="fxaProfileImage"/>
              </vbox>
              <vbox flex="1" pack="center">
                <hbox align="center">
                  <image class="fxaLoginRejectedWarning"/>
                  <description flex="1"
                    class="l10nArgsEmailAddress"
                    data-l10n-id="sync-signedin-login-failure"
                    data-l10n-args='{"email": ""}'/>
                </hbox>
                <hbox class="fxaAccountBoxButtons">
                  <button id="rejectReSignIn"
                          is="highlightable-button"
                          data-l10n-id="sync-sign-in"/>
                  <button id="rejectUnlinkFxaAccount"
                          is="highlightable-button"
                          data-l10n-id="sync-remove-account"/>
                </hbox>
              </vbox>
            </hbox>
          </deck>
        </groupbox>

        <groupbox>
          <label control="fxaSyncComputerName">
            <html:h2 data-l10n-id="sync-device-name-header"/>
          </label>
          <hbox id="fxaDeviceName">
            <html:input id="fxaSyncComputerName" type="text" disabled="true"/>
            <button id="fxaChangeDeviceName"
                    is="highlightable-button"
                    class="needs-account-ready"
                    data-l10n-id="sync-device-name-change"/>
            <button id="fxaCancelChangeDeviceName"
                    is="highlightable-button"
                    data-l10n-id="sync-device-name-cancel"
                    hidden="true"/>
            <button id="fxaSaveChangeDeviceName"
                    is="highlightable-button"
                    data-l10n-id="sync-device-name-save"
                    hidden="true"/>
          </hbox>
        </groupbox>

        <groupbox>
          <deck id="syncStatus" flex="1">
            <!-- sync not yet configured. -->
            <vbox id="syncNotConfigured">
              <label>
                <html:h2 data-l10n-id="prefs-syncing-off"/>
              </label>
              <hbox class="sync-group info-box-container">
                <vbox flex="1">
                  <label data-l10n-id="prefs-sync-offer-setup-label2"/>
                </vbox>
                <vbox>
                  <button id="syncSetup"
                          is="highlightable-button"
                          class="accessory-button needs-account-ready"
                          data-l10n-id="prefs-sync-turn-on-syncing"/>
                </vbox>
              </hbox>
            </vbox>

            <vbox id="syncConfigured">
              <hbox>
                <html:h2 data-l10n-id="prefs-syncing-on"/>
                <spacer flex="1"/>
                <button id="syncNow"
                        class="accessory-button needs-account-ready"
                        data-l10n-id="prefs-sync-now"
                        data-l10n-attrs="labelnotsyncing, accesskeynotsyncing, labelsyncing"/>
              </hbox>
              <vbox class="sync-group info-box-container sync-configured">
                <label data-l10n-id="sync-syncing-across-devices-heading"/>
                <html:div class="sync-engines-list">
                  <html:div engine_preference="services.sync.engine.bookmarks">
                    <image class="sync-engine-image sync-engine-bookmarks"/>
                    <label data-l10n-id="sync-currently-syncing-bookmarks"/>
                  </html:div>
                  <html:div engine_preference="services.sync.engine.history">
                    <image class="sync-engine-image sync-engine-history"/>
                    <label data-l10n-id="sync-currently-syncing-history"/>
                  </html:div>
                  <html:div engine_preference="services.sync.engine.tabs">
                    <image class="sync-engine-image sync-engine-tabs"/>
                    <label data-l10n-id="sync-currently-syncing-tabs"/>
                  </html:div>
                  <html:div engine_preference="services.sync.engine.passwords">
                    <image class="sync-engine-image sync-engine-passwords"/>
                    <label data-l10n-id="sync-currently-syncing-logins-passwords"/>
                  </html:div>
                  <html:div engine_preference="services.sync.engine.addresses">
                    <image class="sync-engine-image sync-engine-addresses"/>
                    <label data-l10n-id="sync-currently-syncing-addresses"/>
                  </html:div>
                  <html:div engine_preference="services.sync.engine.creditcards">
                    <image class="sync-engine-image sync-engine-creditcards"/>
                    <label data-l10n-id="sync-currently-syncing-creditcards"/>
                  </html:div>
                  <html:div engine_preference="services.sync.engine.addons">
                    <image class="sync-engine-image sync-engine-addons"/>
                    <label data-l10n-id="sync-currently-syncing-addons"/>
                  </html:div>
                  <html:div engine_preference="services.sync.engine.prefs">
                    <image class="sync-engine-image sync-engine-prefs"/>
                    <label data-l10n-id="sync-currently-syncing-settings"/>
                  </html:div>
                </html:div>
                <hbox>
                  <button id="syncChangeOptions"
                          is="highlightable-button"
                          data-l10n-id="sync-change-options"/>
                  <spacer flex="1"/>
                </hbox>
              </vbox>
            </vbox>
          </deck>
        </groupbox>
      </vbox>
    </hbox>
    <vbox align="start">
      <html:a id="connect-another-device"
             is="text-link"
             class="fxaMobilePromo"
             target="_blank"
             data-l10n-id="sync-connect-another-device"/>
    </vbox>
  </vbox>
</deck>
</html:template>