| OLD | NEW |
| 1 <link rel="import" href="chrome://md-user-manager/import_supervised_user.html"> | 1 <link rel="import" href="chrome://md-user-manager/import_supervised_user.html"> |
| 2 <link rel="import" href="chrome://md-user-manager/profile_browser_proxy.html"> | 2 <link rel="import" href="chrome://md-user-manager/profile_browser_proxy.html"> |
| 3 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> | 3 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> |
| 4 <link rel="import" href="chrome://resources/html/action_link.html"> | 4 <link rel="import" href="chrome://resources/html/action_link.html"> |
| 5 <link rel="import" href="chrome://resources/html/cr.html"> | 5 <link rel="import" href="chrome://resources/html/cr.html"> |
| 6 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 6 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 7 <link rel="import" href="chrome://resources/html/polymer.html"> | 7 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 8 <link rel="import" href="chrome://resources/html/util.html"> | 8 <link rel="import" href="chrome://resources/html/util.html"> |
| 9 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> | 9 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
| 10 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> | 10 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 flex-wrap: wrap; | 75 flex-wrap: wrap; |
| 76 margin: -12px; | 76 margin: -12px; |
| 77 } | 77 } |
| 78 | 78 |
| 79 #icons paper-button { | 79 #icons paper-button { |
| 80 background: var(--paper-grey-300); | 80 background: var(--paper-grey-300); |
| 81 border: 1px solid rgba(0, 0, 0, .12); | 81 border: 1px solid rgba(0, 0, 0, .12); |
| 82 margin: 12px; | 82 margin: 12px; |
| 83 min-width: 0; | 83 min-width: 0; |
| 84 padding: 6px 4px; | 84 padding: 6px 4px; |
| 85 --paper-button-flat-keyboard-focus: { |
| 86 outline: auto; |
| 87 }; |
| 85 } | 88 } |
| 86 | 89 |
| 87 #icons paper-button[active] { | 90 #icons paper-button[active] { |
| 88 border-color: var(--google-blue-500); | 91 border-color: var(--google-blue-500); |
| 89 } | 92 } |
| 90 | 93 |
| 91 #icons paper-button:focus:not([active]) { | |
| 92 outline: 1px dotted #666; | |
| 93 } | |
| 94 | |
| 95 paper-checkbox { | 94 paper-checkbox { |
| 96 --paper-checkbox-label-spacing: 16px; | 95 --paper-checkbox-label-spacing: 16px; |
| 97 --paper-checkbox-size: 20px; | 96 --paper-checkbox-size: 20px; |
| 98 --primary-text-color: var(--main-text-color); | 97 --primary-text-color: var(--main-text-color); |
| 99 margin-top: 24px; | 98 margin-top: 24px; |
| 100 } | 99 } |
| 101 | 100 |
| 102 #supervised-user-container { | 101 #supervised-user-container { |
| 103 -webkit-padding-start: 36px; | 102 -webkit-padding-start: 36px; |
| 104 } | 103 } |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 align-self: center; | 152 align-self: center; |
| 154 height: 20px; | 153 height: 20px; |
| 155 width: 20px; | 154 width: 20px; |
| 156 } | 155 } |
| 157 </style> | 156 </style> |
| 158 <div id="message-container" hidden="[[!message_]]"> | 157 <div id="message-container" hidden="[[!message_]]"> |
| 159 <iron-icon icon="warning"></iron-icon> | 158 <iron-icon icon="warning"></iron-icon> |
| 160 <span id="message" inner-h-t-m-l="[[message_]]"></span> | 159 <span id="message" inner-h-t-m-l="[[message_]]"></span> |
| 161 </div> | 160 </div> |
| 162 <div class="container"> | 161 <div class="container"> |
| 163 <div id="title-bar" i18n-content="createProfileTitle"></div> | 162 <div id="title-bar">$i18n{createProfileTitle}</div> |
| 164 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*" | 163 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*" |
| 165 no-label-float auto-validate> | 164 no-label-float auto-validate> |
| 166 </paper-input> | 165 </paper-input> |
| 167 <div id="icons"> | 166 <div id="icons"> |
| 168 <template is="dom-repeat" items="[[availableIconUrls_]]"> | 167 <template is="dom-repeat" items="[[availableIconUrls_]]"> |
| 169 <paper-button toggles on-tap="onIconTap_" data-icon-url$="[[item]]" | 168 <paper-button toggles on-tap="onIconTap_" data-icon-url$="[[item]]" |
| 170 active="[[isActiveIcon_(item, profileIconUrl_)]]"> | 169 active="[[isActiveIcon_(item, profileIconUrl_)]]"> |
| 171 <img src="[[item]]"> | 170 <img src="[[item]]"> |
| 172 </paper-button> | 171 </paper-button> |
| 173 </template> | 172 </template> |
| 174 </div> | 173 </div> |
| 175 <paper-checkbox checked="{{isSupervised_}}"> | 174 <paper-checkbox checked="{{isSupervised_}}"> |
| 176 [[i18n('manageProfilesSupervisedSignedInLabel')]] | 175 $i18n{manageProfilesSupervisedSignedInLabel} |
| 177 </paper-checkbox> | 176 </paper-checkbox> |
| 178 <div id="supervised-user-container"> | 177 <div id="supervised-user-container"> |
| 179 <div id="learn-more" > | 178 <div id="learn-more" > |
| 180 <a is="action-link" on-tap="onLearnMoreTap_">[[i18n('learnMore')]]</a> | 179 <a is="action-link" on-tap="onLearnMoreTap_">$i18n{learnMore}</a> |
| 181 <div> | 180 <div> |
| 182 <template is="dom-if" if="[[isSupervised_]]"> | 181 <template is="dom-if" if="[[isSupervised_]]"> |
| 183 <template is="dom-if" if="[[isSignedIn_(signedInUsers_)]]"> | 182 <template is="dom-if" if="[[isSignedIn_(signedInUsers_)]]"> |
| 184 <paper-dropdown-menu no-label-float> | 183 <paper-dropdown-menu no-label-float> |
| 185 <paper-listbox class="dropdown-content" | 184 <paper-listbox class="dropdown-content" |
| 186 selected="{{signedInUserIndex_}}" | 185 selected="{{signedInUserIndex_}}" |
| 187 attr-for-selected="data-user-index"> | 186 attr-for-selected="data-user-index"> |
| 188 <paper-item data-user-index$="[[sentinelSignedInUserIndex_]]"> | 187 <paper-item data-user-index$="[[sentinelSignedInUserIndex_]]"> |
| 189 [[i18n('selectAnAccount')]] | 188 $i18n{selectAnAccount} |
| 190 </paper-item> | 189 </paper-item> |
| 191 <template is="dom-repeat" items="[[signedInUsers_]]"> | 190 <template is="dom-repeat" items="[[signedInUsers_]]"> |
| 192 <paper-item data-user-index$="[[index]]"> | 191 <paper-item data-user-index$="[[index]]"> |
| 193 [[item.username]] | 192 [[item.username]] |
| 194 </paper-item> | 193 </paper-item> |
| 195 </template> | 194 </template> |
| 196 </paper-listbox> | 195 </paper-listbox> |
| 197 </paper-dropdown-menu> | 196 </paper-dropdown-menu> |
| 198 <a id="import-user" is="action-link" on-tap="onImportUserTap_" | 197 <a id="import-user" is="action-link" on-tap="onImportUserTap_" |
| 199 hidden="[[isImportUserLinkHidden_(createInProgress_, | 198 hidden="[[isImportUserLinkHidden_(createInProgress_, |
| 200 signedInUserIndex_)]]"> | 199 signedInUserIndex_)]]"> |
| 201 [[i18n('importExistingSupervisedUserLink')]] | 200 $i18n{importExistingSupervisedUserLink} |
| 202 </a> | 201 </a> |
| 203 </template> | 202 </template> |
| 204 <div id="sign-in-howto-message" | 203 <div id="sign-in-howto-message" |
| 205 hidden="[[isSignedIn_(signedInUsers_)]]" | 204 hidden="[[isSignedIn_(signedInUsers_)]]" |
| 206 inner-h-t-m-l="[[i18n('noSignedInUserMessage')]]"> | 205 inner-h-t-m-l="[[i18n('noSignedInUserMessage')]]"> |
| 207 </div> | 206 </div> |
| 208 </template> | 207 </template> |
| 209 </div> | 208 </div> |
| 210 <div id="actions"> | 209 <div id="actions"> |
| 211 <paper-spinner active="[[createInProgress_]]"></paper-spinner> | 210 <paper-spinner active="[[createInProgress_]]"></paper-spinner> |
| 212 <paper-button id="cancel" class="action secondary" i18n-content="cancel" | 211 <paper-button id="cancel" class="action secondary" |
| 213 on-tap="onCancelTap_"> | 212 on-tap="onCancelTap_"> |
| 213 $i18n{cancel} |
| 214 </paper-button> | 214 </paper-button> |
| 215 <paper-button id="save" class="action primary" on-tap="onSaveTap_" | 215 <paper-button id="save" class="action primary" on-tap="onSaveTap_" |
| 216 i18n-content="createProfileConfirm" | |
| 217 disabled="[[isSaveDisabled_(createInProgress_, profileName_)]]"> | 216 disabled="[[isSaveDisabled_(createInProgress_, profileName_)]]"> |
| 217 $i18n{createProfileConfirm} |
| 218 </paper-button> | 218 </paper-button> |
| 219 </div> | 219 </div> |
| 220 <import-supervised-user id="importUserPopup"></import-supervised-user> | 220 <import-supervised-user id="importUserPopup"></import-supervised-user> |
| 221 </div> | 221 </div> |
| 222 </template> | 222 </template> |
| 223 <script src="chrome://md-user-manager/create_profile.js"></script> | 223 <script src="chrome://md-user-manager/create_profile.js"></script> |
| 224 </dom-module> | 224 </dom-module> |
| OLD | NEW |