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

Side by Side Diff: chrome/browser/resources/settings/people_page/sync_page.html

Issue 2441503002: [MD Settings][People] Visual updates to the sync setup page. (Closed)
Patch Set: Addressed comment Created 4 years, 1 month 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
OLDNEW
1 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> 1 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape r-radio-button.html"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-button/pape r-radio-button.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper -radio-group.html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-radio-group/paper -radio-group.html">
9 <link rel="import" href="/people_page/sync_browser_proxy.html"> 9 <link rel="import" href="/people_page/sync_browser_proxy.html">
10 <link rel="import" href="/route.html"> 10 <link rel="import" href="/route.html">
11 <link rel="import" href="/settings_shared_css.html"> 11 <link rel="import" href="/settings_shared_css.html">
12 12
13 <dom-module id="settings-sync-page"> 13 <dom-module id="settings-sync-page">
14 <template> 14 <template>
15 <style include="settings-shared"> 15 <style include="settings-shared">
16 #create-password-box { 16 #create-password-box,
17 /* The password fields line up with the encryption radio box text. */ 17 #reset-sync-message-box {
18 /* In order to line up with the encryption radio box text. */
18 -webkit-margin-start: 36px; 19 -webkit-margin-start: 36px;
19 } 20 }
20 21
21 paper-input { 22 paper-input {
22 width: var(--paper-input-max-width); 23 width: var(--paper-input-max-width);
24 --paper-input-container-focus-color: var(--google-blue-500);
25 --paper-input-container-input: {
26 font-size: inherit;
27 };
28 }
29
30 #saveNewPassphrase {
31 margin-top: 20px;
32 }
33
34 #existingPassphraseContainer,
35 #passphraseRecoverHint {
36 align-items: flex-end;
23 } 37 }
24 38
25 #existingPassphraseInput { 39 #existingPassphraseInput {
26 /* The submit button for the existing passphrase is on the same line. */ 40 /* The submit button for the existing passphrase is on the same line. */
27 -webkit-margin-end: 16px; 41 -webkit-margin-end: 16px;
28 display: inline-block; 42 display: inline-block;
43 --paper-input-container: {
44 padding: 0;
45 };
29 } 46 }
30 </style> 47 </style>
31 <div id="[[pages.SPINNER]]" class="settings-box first" 48 <div id="[[pages.SPINNER]]" class="settings-box first"
32 hidden$="[[!isStatus_(pages.SPINNER, pageStatus_)]]"> 49 hidden$="[[!isStatus_(pages.SPINNER, pageStatus_)]]">
33 $i18n{syncLoading} 50 $i18n{syncLoading}
34 </div> 51 </div>
35 <div id="[[pages.TIMEOUT]]" class="settings-box first" 52 <div id="[[pages.TIMEOUT]]" class="settings-box first"
36 hidden$="[[!isStatus_(pages.TIMEOUT, pageStatus_)]]"> 53 hidden$="[[!isStatus_(pages.TIMEOUT, pageStatus_)]]">
37 $i18n{syncTimeout} 54 $i18n{syncTimeout}
38 </div> 55 </div>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 <paper-radio-group 163 <paper-radio-group
147 selected="[[selectedEncryptionRadio_( 164 selected="[[selectedEncryptionRadio_(
148 syncPrefs.passphraseTypeIsCustom)]]" 165 syncPrefs.passphraseTypeIsCustom)]]"
149 on-paper-radio-group-changed="onEncryptionRadioSelectionChanged_"> 166 on-paper-radio-group-changed="onEncryptionRadioSelectionChanged_">
150 <paper-radio-button name="encrypt-with-google" 167 <paper-radio-button name="encrypt-with-google"
151 class="list-item" disabled="[[syncPrefs.encryptAllData]]"> 168 class="list-item" disabled="[[syncPrefs.encryptAllData]]">
152 $i18n{encryptWithGoogleCredentialsLabel} 169 $i18n{encryptWithGoogleCredentialsLabel}
153 </paper-radio-button> 170 </paper-radio-button>
154 <paper-radio-button name="encrypt-with-passphrase" 171 <paper-radio-button name="encrypt-with-passphrase"
155 class="list-item" disabled="[[syncPrefs.encryptAllData]]"> 172 class="list-item" disabled="[[syncPrefs.encryptAllData]]">
156 <span> 173 <template is="dom-if" if="[[syncPrefs.fullEncryptionBody]]">
157 [[encryptWithPassphraseBody_(syncPrefs.fullEncryptionBody)]] 174 <span>[[syncPrefs.fullEncryptionBody]]</span>
158 </span> 175 </template>
176 <template is="dom-if" if="[[!syncPrefs.fullEncryptionBody]]">
177 <span>$i18nRaw{encryptWithSyncPassphraseLabel}</span>
178 </template>
159 </paper-radio-button> 179 </paper-radio-button>
160 </paper-radio-group> 180 </paper-radio-group>
181 <div id="reset-sync-message-box" class="list-item"
182 hidden="[[!syncPrefs.encryptAllData]]">
183 <span>$i18nRaw{passphraseResetHint}</span>
184 </div>
161 </div> 185 </div>
162 186
163 <template is="dom-if" if="[[creatingNewPassphrase_]]"> 187 <template is="dom-if" if="[[creatingNewPassphrase_]]">
164 <div class="list-frame"> 188 <div class="list-frame">
165 <div id="create-password-box"> 189 <div id="create-password-box">
166 <div>$i18n{passphraseExplanationText}</div> 190 <div class="list-item">
191 <span>$i18nRaw{passphraseExplanationText}</span>
192 </div>
167 <paper-input id="passphraseInput" type="password" 193 <paper-input id="passphraseInput" type="password"
194 value="{{passphrase_}}"
168 placeholder="$i18n{passphrasePlaceholder}" 195 placeholder="$i18n{passphrasePlaceholder}"
169 error-message="$i18n{emptyPassphraseError}"> 196 error-message="$i18n{emptyPassphraseError}">
170 </paper-input> 197 </paper-input>
171 <paper-input id="passphraseConfirmationInput" type="password" 198 <paper-input id="passphraseConfirmationInput" type="password"
199 value="{{confirmation_}}"
172 placeholder="$i18n{passphraseConfirmationPlaceholder}" 200 placeholder="$i18n{passphraseConfirmationPlaceholder}"
173 error-message="$i18n{mismatchedPassphraseError}"> 201 error-message="$i18n{mismatchedPassphraseError}">
174 </paper-input> 202 </paper-input>
175 <paper-button id="saveNewPassphrase" 203 <paper-button id="saveNewPassphrase"
176 on-tap="onSaveNewPassphraseTap_" class="action-button"> 204 on-tap="onSaveNewPassphraseTap_" class="action-button"
205 disabled="[[!isSaveNewPassphraseEnabled_(passphrase_,
206 confirmation_)]]">
177 $i18n{save} 207 $i18n{save}
178 </paper-button> 208 </paper-button>
179 </div> 209 </div>
180 </div> 210 </div>
181 </template> 211 </template>
182 212
183 <template is="dom-if" if="[[syncPrefs.passphraseRequired]]"> 213 <template is="dom-if" if="[[syncPrefs.passphraseRequired]]">
184 <div class="list-frame"> 214 <div class="list-frame">
185 <div id="askCustomPassphraseMessage" class="list-item" 215 <div class="list-item">
186 hidden$="[[!syncPrefs.passphraseTypeIsCustom]]"> 216 <span>
187 [[syncPrefs.enterPassphraseBody]] 217 [[enterPassphrasePrompt_(syncPrefs.passphraseTypeIsCustom)]]
218 <a href="$i18nRaw{syncErrorHelpUrl}" target="_blank">
219 $i18n{learnMore}
220 </a>
221 </span>
188 </div> 222 </div>
189 <div id="askOldGooglePassphraseMessage" class="list-item" 223 <div id="existingPassphraseContainer" class="list-item">
190 hidden$="[[syncPrefs.passphraseTypeIsCustom]]">
191 [[syncPrefs.enterGooglePassphraseBody]]
192 </div>
193 <div class="list-item">
194 <paper-input id="existingPassphraseInput" type="password" 224 <paper-input id="existingPassphraseInput" type="password"
225 value="{{existingPassphrase_}}"
195 placeholder="$i18n{passphrasePlaceholder}" 226 placeholder="$i18n{passphrasePlaceholder}"
196 error-message="$i18n{incorrectPassphraseError}"> 227 error-message="$i18n{incorrectPassphraseError}">
197 </paper-input> 228 </paper-input>
198 <paper-button id="submitExistingPassphrase" 229 <paper-button id="submitExistingPassphrase"
199 on-tap="onSubmitExistingPassphraseTap_" class="action-button"> 230 on-tap="onSubmitExistingPassphraseTap_" class="action-button"
231 disabled="[[!existingPassphrase_]]">
200 $i18n{submitPassphraseButton} 232 $i18n{submitPassphraseButton}
201 </paper-button> 233 </paper-button>
202 </div> 234 </div>
203 <div class="list-item"> 235 <div id="passphraseRecoverHint" class="list-item">
204 <span>$i18nRaw{passphraseRecover}</span> 236 <span>$i18nRaw{passphraseRecover}</span>
205 </div> 237 </div>
206 </div> 238 </div>
207 </template> 239 </template>
208 </div> 240 </div>
209 </template> 241 </template>
210 <script src="sync_page.js"></script> 242 <script src="sync_page.js"></script>
211 </dom-module> 243 </dom-module>
OLDNEW
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/resources/settings/people_page/sync_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698