| OLD | NEW |
| (Empty) |
| 1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> | |
| 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys-behavior
/iron-a11y-keys-behavior.html"> | |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.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-input/paper-input
.html"> | |
| 6 <link rel="import" href="chrome://md-settings/controls/settings_checkbox.html"> | |
| 7 <link rel="import" href="chrome://md-settings/settings_page/settings_section.htm
l"> | |
| 8 <link rel="import" href="user_list.html"> | |
| 9 | |
| 10 <dom-module id="settings-users-page"> | |
| 11 <link rel="import" type="css" | |
| 12 href="chrome://md-settings/settings_shared.css"> | |
| 13 <link rel="import" type="css" href="users_page.css"> | |
| 14 <template> | |
| 15 <div class="page-content"> | |
| 16 <div i18n-content="usersModifiedByOwnerLabel" | |
| 17 hidden$="{{computeHideOwnerLabel_(isOwner, isWhitelistManaged)}}"> | |
| 18 </div> | |
| 19 <div i18n-content="settingsManagedLabel" | |
| 20 hidden$="{{computeHideManagedLabel_(isOwner, isWhitelistManaged)}}"> | |
| 21 </div> | |
| 22 <div> | |
| 23 <settings-checkbox | |
| 24 pref="{{prefs.cros.accounts.allowBWSI}}" | |
| 25 i18n-values="label:guestBrowsingLabel" | |
| 26 disabled="{{editingDisabled}}"> | |
| 27 </settings-checkbox> | |
| 28 <settings-checkbox | |
| 29 pref="{{prefs.cros.accounts.supervisedUsersEnabled}}" | |
| 30 i18n-values="label:supervisedUsersLabel" | |
| 31 disabled="{{editingDisabled}}"> | |
| 32 </settings-checkbox> | |
| 33 <settings-checkbox | |
| 34 pref="{{prefs.cros.accounts.showUserNamesOnSignIn}}" | |
| 35 i18n-values="label:showOnSigninLabel" | |
| 36 disabled="{{editingDisabled}}"> | |
| 37 </settings-checkbox> | |
| 38 <settings-checkbox | |
| 39 pref="{{prefs.cros.accounts.allowGuest}}" | |
| 40 id="restrictSignIn" | |
| 41 i18n-values="label:restrictSigninLabel" | |
| 42 disabled="{{editingDisabled}}" inverted> | |
| 43 </settings-checkbox> | |
| 44 </div> | |
| 45 <div class="users"> | |
| 46 <div> | |
| 47 <settings-user-list prefs="[[prefs]]" | |
| 48 disabled="[[editingUsersDisabled]]"> | |
| 49 </settings-user-list> | |
| 50 </div> | |
| 51 <div> | |
| 52 <paper-input id="addUserInput" i18n-values="label:addUsersLabel" | |
| 53 disabled="[[editingUsersDisabled]]"> | |
| 54 </paper-input> | |
| 55 <div class="add-user-button layout horizontal end-justified"> | |
| 56 <paper-button i18n-content="addLabel" on-tap="addUser_" | |
| 57 disabled="[[editingUsersDisabled]]" raised> | |
| 58 </paper-button> | |
| 59 </div> | |
| 60 </div> | |
| 61 </div> | |
| 62 </div> | |
| 63 </template> | |
| 64 <script src="users_page.js"></script> | |
| 65 </dom-module> | |
| OLD | NEW |