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

Side by Side Diff: chrome/browser/resources/md_user_manager/create_profile.html

Issue 2561243002: Hide supervised user creation from UserManager when force sign in is enabled. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_user_manager/create_profile.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/util.html"> 10 <link rel="import" href="chrome://resources/html/util.html">
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*" 157 <paper-input id="nameInput" value="{{profileName_}}" pattern=".*\S.*"
158 no-label-float auto-validate> 158 no-label-float auto-validate>
159 </paper-input> 159 </paper-input>
160 <cr-profile-avatar-selector avatars="[[availableIcons_]]" 160 <cr-profile-avatar-selector avatars="[[availableIcons_]]"
161 selected-avatar-url="{{profileIconUrl_}}"> 161 selected-avatar-url="{{profileIconUrl_}}">
162 </cr-profile-avatar-selector> 162 </cr-profile-avatar-selector>
163 <paper-checkbox id="createShortcutCheckbox" checked="{{createShortcut_}}" 163 <paper-checkbox id="createShortcutCheckbox" checked="{{createShortcut_}}"
164 hidden="[[!isProfileShortcutsEnabled_]]"> 164 hidden="[[!isProfileShortcutsEnabled_]]">
165 $i18n{createDesktopShortcutLabel} 165 $i18n{createDesktopShortcutLabel}
166 </paper-checkbox> 166 </paper-checkbox>
167 <paper-checkbox id="makeSupervisedCheckbox" checked="{{isSupervised_}}"> 167 <template is="dom-if" if="[[!isForceSigninEnabled_]]">
168 $i18n{manageProfilesSupervisedSignedInLabel} 168 <paper-checkbox id="makeSupervisedCheckbox" checked="{{isSupervised_}}">
169 </paper-checkbox> 169 $i18n{manageProfilesSupervisedSignedInLabel}
170 <div id="supervised-user-container"> 170 </paper-checkbox>
171 <div id="learn-more" > 171 <div id="supervised-user-container">
172 <a is="action-link" on-tap="onLearnMoreTap_">$i18n{learnMore}</a> 172 <div id="learn-more" >
173 <a is="action-link" on-tap="onLearnMoreTap_">$i18n{learnMore}</a>
174 </div>
175 <template is="dom-if" if="[[isSupervised_]]">
176 <template is="dom-if" if="[[isSignedIn_(signedInUsers_)]]">
177 <paper-dropdown-menu label="$i18n{selectAnAccount}" no-label-float >
178 <paper-listbox class="dropdown-content"
179 selected="{{signedInUserIndex_}}"
180 attr-for-selected="data-user-index">
181 <template is="dom-repeat" items="[[signedInUsers_]]">
182 <paper-item data-user-index$="[[index]]">
183 [[item.username]]
184 </paper-item>
185 </template>
186 </paper-listbox>
187 </paper-dropdown-menu>
188 <a id="import-user" is="action-link" on-tap="onImportUserTap_"
189 hidden="[[isImportUserLinkHidden_(createInProgress_,
190 loadingSupervisedUsers_,
191 signedInUserIndex_)]]">
192 $i18n{importExistingSupervisedUserLink}
193 </a>
194 </template>
195 <div id="sign-in-howto-message"
196 hidden="[[isSignedIn_(signedInUsers_)]]"
197 inner-h-t-m-l="[[i18nAllowIDAttr_('noSignedInUserMessage')]]">
198 </div>
199 </template>
173 </div> 200 </div>
174 <template is="dom-if" if="[[isSupervised_]]"> 201 </template>
175 <template is="dom-if" if="[[isSignedIn_(signedInUsers_)]]">
176 <paper-dropdown-menu label="$i18n{selectAnAccount}" no-label-float>
177 <paper-listbox class="dropdown-content"
178 selected="{{signedInUserIndex_}}"
179 attr-for-selected="data-user-index">
180 <template is="dom-repeat" items="[[signedInUsers_]]">
181 <paper-item data-user-index$="[[index]]">
182 [[item.username]]
183 </paper-item>
184 </template>
185 </paper-listbox>
186 </paper-dropdown-menu>
187 <a id="import-user" is="action-link" on-tap="onImportUserTap_"
188 hidden="[[isImportUserLinkHidden_(createInProgress_,
189 loadingSupervisedUsers_,
190 signedInUserIndex_)]]">
191 $i18n{importExistingSupervisedUserLink}
192 </a>
193 </template>
194 <div id="sign-in-howto-message"
195 hidden="[[isSignedIn_(signedInUsers_)]]"
196 inner-h-t-m-l="[[i18nAllowIDAttr_('noSignedInUserMessage')]]">
197 </div>
198 </template>
199 </div>
200 <div id="actions"> 202 <div id="actions">
201 <paper-spinner active="[[isSpinnerActive_(createInProgress_, 203 <paper-spinner active="[[isSpinnerActive_(createInProgress_,
202 loadingSupervisedUsers_)]]"> 204 loadingSupervisedUsers_)]]">
203 </paper-spinner> 205 </paper-spinner>
204 <paper-button id="cancel" class="action secondary" 206 <paper-button id="cancel" class="action secondary"
205 on-tap="onCancelTap_"> 207 on-tap="onCancelTap_">
206 $i18n{cancel} 208 $i18n{cancel}
207 </paper-button> 209 </paper-button>
208 <paper-button id="save" class="action primary" on-tap="onSaveTap_" 210 <paper-button id="save" class="action primary" on-tap="onSaveTap_"
209 disabled="[[isSaveDisabled_(createInProgress_, 211 disabled="[[isSaveDisabled_(createInProgress_,
210 loadingSupervisedUsers_, 212 loadingSupervisedUsers_,
211 profileName_)]]"> 213 profileName_)]]">
212 $i18n{createProfileConfirm} 214 $i18n{createProfileConfirm}
213 </paper-button> 215 </paper-button>
214 </div> 216 </div>
215 <import-supervised-user id="importUserPopup"></import-supervised-user> 217 <import-supervised-user id="importUserPopup"></import-supervised-user>
216 </div> 218 </div>
217 </template> 219 </template>
218 <script src="create_profile.js"></script> 220 <script src="create_profile.js"></script>
219 </dom-module> 221 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_user_manager/create_profile.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698