OLD | NEW |
1 <link rel="import" href="/import_supervised_user.html"> | 1 <link rel="import" href="/import_supervised_user.html"> |
2 <link rel="import" href="/profile_browser_proxy.html"> | 2 <link rel="import" href="/profile_browser_proxy.html"> |
3 <link rel="import" href="/shared_styles.html"> | 3 <link rel="import" href="/shared_styles.html"> |
4 <link rel="import" href="chrome://resources/cr_elements/cr_profile_avatar_select
or/cr_profile_avatar_selector.html"> | 4 <link rel="import" href="chrome://resources/cr_elements/cr_profile_avatar_select
or/cr_profile_avatar_selector.html"> |
5 <link rel="import" href="chrome://resources/cr_elements/icons.html"> | 5 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
6 <link rel="import" href="chrome://resources/html/action_link.html"> | 6 <link rel="import" href="chrome://resources/html/action_link.html"> |
7 <link rel="import" href="chrome://resources/html/cr.html"> | 7 <link rel="import" href="chrome://resources/html/cr.html"> |
8 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 8 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
9 <link rel="import" href="chrome://resources/html/polymer.html"> | 9 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 10 <link rel="import" href="chrome://resources/html/md_select_css.html"> |
10 <link rel="import" href="chrome://resources/html/util.html"> | 11 <link rel="import" href="chrome://resources/html/util.html"> |
11 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 12 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
12 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> | 13 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> |
13 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 14 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
14 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | 15 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> |
15 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap
er-dropdown-menu.html"> | 16 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap
er-dropdown-menu.html"> |
16 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 17 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
17 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> | 18 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> |
18 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis
tbox.html"> | 19 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis
tbox.html"> |
19 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi
nner.html"> | 20 <link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spi
nner.html"> |
20 | 21 |
21 <dom-module id="create-profile"> | 22 <dom-module id="create-profile"> |
22 <template> | 23 <template> |
23 <style include="shared-styles iron-positioning"> | 24 <style include="shared-styles iron-positioning md-select"> |
24 .container { | 25 .container { |
25 color: var(--primary-text-color); | 26 color: var(--primary-text-color); |
26 width: var(--page-width); | 27 width: var(--page-width); |
27 } | 28 } |
28 | 29 |
29 #message-container { | 30 #message-container { |
30 -webkit-transition: top 400ms cubic-bezier(.4, 0, .2, 1), | 31 -webkit-transition: top 400ms cubic-bezier(.4, 0, .2, 1), |
31 visibility 0s linear 400ms; | 32 visibility 0s linear 400ms; |
32 align-items: center; | 33 align-items: center; |
33 background-color: var(--paper-red-50); | 34 background-color: var(--paper-red-50); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 <template is="dom-if" if="[[!isForceSigninEnabled_]]"> | 168 <template is="dom-if" if="[[!isForceSigninEnabled_]]"> |
168 <paper-checkbox id="makeSupervisedCheckbox" checked="{{isSupervised_}}"> | 169 <paper-checkbox id="makeSupervisedCheckbox" checked="{{isSupervised_}}"> |
169 $i18n{manageProfilesSupervisedSignedInLabel} | 170 $i18n{manageProfilesSupervisedSignedInLabel} |
170 </paper-checkbox> | 171 </paper-checkbox> |
171 <div id="supervised-user-container"> | 172 <div id="supervised-user-container"> |
172 <div id="learn-more" > | 173 <div id="learn-more" > |
173 <a is="action-link" on-tap="onLearnMoreTap_">$i18n{learnMore}</a> | 174 <a is="action-link" on-tap="onLearnMoreTap_">$i18n{learnMore}</a> |
174 </div> | 175 </div> |
175 <template is="dom-if" if="[[isSupervised_]]"> | 176 <template is="dom-if" if="[[isSupervised_]]"> |
176 <template is="dom-if" if="[[isSignedIn_(signedInUsers_)]]"> | 177 <template is="dom-if" if="[[isSignedIn_(signedInUsers_)]]"> |
177 <paper-dropdown-menu label="$i18n{selectAnAccount}" no-label-float
> | 178 <div class="md-select-wrapper"> |
178 <paper-listbox class="dropdown-content" | 179 <select class="md-select" on-change="onAccountChanged_"> |
179 selected="{{signedInUserIndex_}}" | 180 <option disabled selected>$i18n{selectAnAccount}</option> |
180 attr-for-selected="data-user-index"> | |
181 <template is="dom-repeat" items="[[signedInUsers_]]"> | 181 <template is="dom-repeat" items="[[signedInUsers_]]"> |
182 <paper-item data-user-index$="[[index]]"> | 182 <option value="[[index]]"> |
183 [[item.username]] | 183 [[item.username]] |
184 </paper-item> | 184 </option> |
185 </template> | 185 </template> |
186 </paper-listbox> | 186 </select> |
187 </paper-dropdown-menu> | 187 <span class="md-select-underline"></span> |
| 188 </div> |
188 <a id="import-user" is="action-link" on-tap="onImportUserTap_" | 189 <a id="import-user" is="action-link" on-tap="onImportUserTap_" |
189 hidden="[[isImportUserLinkHidden_(createInProgress_, | 190 hidden="[[isImportUserLinkHidden_(createInProgress_, |
190 loadingSupervisedUsers_, | 191 loadingSupervisedUsers_, |
191 signedInUserIndex_)]]"> | 192 signedInUserIndex_)]]"> |
192 $i18n{importExistingSupervisedUserLink} | 193 $i18n{importExistingSupervisedUserLink} |
193 </a> | 194 </a> |
194 </template> | 195 </template> |
195 <div id="sign-in-howto-message" | 196 <div id="sign-in-howto-message" |
196 hidden="[[isSignedIn_(signedInUsers_)]]" | 197 hidden="[[isSignedIn_(signedInUsers_)]]" |
197 inner-h-t-m-l="[[i18nAllowIDAttr_('noSignedInUserMessage')]]"> | 198 inner-h-t-m-l="[[i18nAllowIDAttr_('noSignedInUserMessage')]]"> |
(...skipping 14 matching lines...) Expand all Loading... |
212 loadingSupervisedUsers_, | 213 loadingSupervisedUsers_, |
213 profileName_)]]"> | 214 profileName_)]]"> |
214 $i18n{createProfileConfirm} | 215 $i18n{createProfileConfirm} |
215 </paper-button> | 216 </paper-button> |
216 </div> | 217 </div> |
217 <import-supervised-user id="importUserPopup"></import-supervised-user> | 218 <import-supervised-user id="importUserPopup"></import-supervised-user> |
218 </div> | 219 </div> |
219 </template> | 220 </template> |
220 <script src="create_profile.js"></script> | 221 <script src="create_profile.js"></script> |
221 </dom-module> | 222 </dom-module> |
OLD | NEW |