| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/html/action_link.html"> |
| 2 <link rel="import" href="chrome://resources/html/action_link_css.html"> |
| 1 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 2 <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/iron-flex-layout/classe
s/iron-flex-layout.html"> |
| 3 <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-button/paper-butt
on.html"> |
| 4 <link rel="import" href="/controls/settings_toggle_button.html"> | 6 <link rel="import" href="/controls/settings_toggle_button.html"> |
| 5 <link rel="import" href="/settings_shared_css.html"> | 7 <link rel="import" href="/settings_shared_css.html"> |
| 6 <link rel="import" href="user_list.html"> | 8 <link rel="import" href="user_list.html"> |
| 7 <link rel="import" href="users_add_user_dialog.html"> | 9 <link rel="import" href="users_add_user_dialog.html"> |
| 8 | 10 |
| 9 <dom-module id="settings-users-page"> | 11 <dom-module id="settings-users-page"> |
| 10 <template> | 12 <template> |
| 11 <style include="settings-shared"> | 13 <style include="settings-shared action-link"> |
| 12 .users { | 14 .users { |
| 13 /* The users box must line up with the checkbox text. */ | 15 /* The users box must line up with the checkbox text. */ |
| 14 -webkit-margin-start: var(--settings-indent-width); | 16 -webkit-margin-start: var(--settings-indent-width); |
| 15 } | 17 } |
| 16 | 18 |
| 17 .settings-box:first-of-type { | 19 .settings-box:first-of-type { |
| 18 border-top: none; | 20 border-top: none; |
| 19 } | 21 } |
| 20 | 22 |
| 21 #add-user-button { | 23 #add-user-button { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 52 id="restrictSignIn" | 54 id="restrictSignIn" |
| 53 label="$i18n{restrictSigninLabel}" | 55 label="$i18n{restrictSigninLabel}" |
| 54 disabled="[[isEditingDisabled_(isOwner_, isWhitelistManaged_)]]" | 56 disabled="[[isEditingDisabled_(isOwner_, isWhitelistManaged_)]]" |
| 55 inverted> | 57 inverted> |
| 56 </settings-toggle-button> | 58 </settings-toggle-button> |
| 57 <div class="users"> | 59 <div class="users"> |
| 58 <settings-user-list prefs="[[prefs]]" | 60 <settings-user-list prefs="[[prefs]]" |
| 59 disabled="[[isEditingUsersDisabled_(isOwner_, isWhitelistManaged_, | 61 disabled="[[isEditingUsersDisabled_(isOwner_, isWhitelistManaged_, |
| 60 prefs.cros.accounts.allowGuest.value)]]"> | 62 prefs.cros.accounts.allowGuest.value)]]"> |
| 61 </settings-user-list> | 63 </settings-user-list> |
| 62 <div id="add-user-button" class="list-item list-button" | 64 <div id="add-user-button" class="list-item" |
| 63 on-tap="openAddUserDialog_" | |
| 64 hidden="[[isEditingUsersDisabled_(isOwner_, isWhitelistManaged_, | 65 hidden="[[isEditingUsersDisabled_(isOwner_, isWhitelistManaged_, |
| 65 prefs.cros.accounts.allowGuest.value)]]"> | 66 prefs.cros.accounts.allowGuest.value)]]"> |
| 66 $i18n{addUsers} | 67 <a is="action-link" class="list-button" on-tap="openAddUserDialog_"> |
| 68 $i18n{addUsers} |
| 69 </a> |
| 67 </div> | 70 </div> |
| 68 </div> | 71 </div> |
| 69 </div> | 72 </div> |
| 70 <settings-users-add-user-dialog id="addUserDialog"> | 73 <settings-users-add-user-dialog id="addUserDialog"> |
| 71 </settings-users-add-user-dialog> | 74 </settings-users-add-user-dialog> |
| 72 </template> | 75 </template> |
| 73 <script src="users_page.js"></script> | 76 <script src="users_page.js"></script> |
| 74 </dom-module> | 77 </dom-module> |
| OLD | NEW |