| OLD | NEW |
| 1 <link rel="import" href="chrome://md-user-manager/profile_browser_proxy.html"> | 1 <link rel="import" href="chrome://md-user-manager/profile_browser_proxy.html"> |
| 2 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> | 2 <link rel="import" href="chrome://md-user-manager/shared_styles.html"> |
| 3 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> | 3 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 4 <link rel="import" href="chrome://resources/html/polymer.html"> | 4 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classe
s/iron-flex-layout.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h
tml"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/iron-selector/iron-sele
ctor.html"> | |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper
-icon-button.html"> |
| 9 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> |
| 10 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis
tbox.html"> |
| 9 | 11 |
| 10 <dom-module id="import-supervised-user"> | 12 <dom-module id="import-supervised-user"> |
| 11 <template> | 13 <template> |
| 12 <style include="shared-styles"> | 14 <style include="shared-styles"> |
| 13 #backdrop { | 15 #backdrop { |
| 14 align-items: center; | 16 align-items: center; |
| 15 background: rgba(255, 255, 255, 0.6); | 17 background: rgba(255, 255, 255, 0.6); |
| 16 bottom: 0; | 18 bottom: 0; |
| 17 display: flex; | 19 display: flex; |
| 18 justify-content: center; | 20 justify-content: center; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 width: 512px; | 34 width: 512px; |
| 33 } | 35 } |
| 34 | 36 |
| 35 #title-bar { | 37 #title-bar { |
| 36 align-items: center; | 38 align-items: center; |
| 37 border-bottom: 1px solid rgba(0, 0, 0, .12); | 39 border-bottom: 1px solid rgba(0, 0, 0, .12); |
| 38 font-size: 16px; | 40 font-size: 16px; |
| 39 padding: 16px; | 41 padding: 16px; |
| 40 } | 42 } |
| 41 | 43 |
| 42 #title-bar iron-icon { | 44 #title-bar paper-icon-button { |
| 43 --iron-icon-height: 12px; | 45 --paper-icon-button: { |
| 44 --iron-icon-width: 12px; | 46 height: 36px; |
| 47 width: 36px; |
| 48 }; |
| 45 } | 49 } |
| 46 | 50 |
| 47 #message { | 51 #message { |
| 48 padding: 20px 16px 16px; | 52 padding: 20px 16px 16px; |
| 49 white-space: pre-wrap; | 53 white-space: pre-wrap; |
| 50 word-wrap: break-word; | 54 word-wrap: break-word; |
| 51 } | 55 } |
| 52 | 56 |
| 53 #user-list .list-item { | 57 paper-listbox { |
| 54 align-items: center; | 58 --paper-listbox: { |
| 55 display: flex; | 59 padding: 0; |
| 56 height: 52px; | 60 color: inherit; |
| 57 padding: 0 16px; | 61 }; |
| 58 } | 62 } |
| 59 | 63 |
| 60 #user-list .list-item .profile-img { | 64 paper-listbox paper-item { |
| 65 --paper-item: { |
| 66 font-size: inherit; |
| 67 height: 52px; |
| 68 line-height: inherit; |
| 69 padding: 0 16px; |
| 70 }; |
| 71 --paper-item-disabled: { |
| 72 color: inherit; |
| 73 }; |
| 74 --paper-item-focused: { |
| 75 background: rgba(0, 0, 0, .04); |
| 76 }; |
| 77 --paper-item-focused-before: { |
| 78 background: none; |
| 79 }; |
| 80 --paper-item-selected: { |
| 81 background: rgba(0, 0, 0, .04); |
| 82 font-weight: normal; |
| 83 }; |
| 84 } |
| 85 |
| 86 paper-listbox paper-item .profile-img { |
| 61 flex-shrink: 0; | 87 flex-shrink: 0; |
| 62 } | 88 } |
| 63 | 89 |
| 64 #user-list .list-item .profile-name { | 90 paper-listbox paper-item .profile-name { |
| 65 -webkit-margin-start: 10px; | 91 -webkit-margin-start: 10px; |
| 66 overflow: hidden; | 92 overflow: hidden; |
| 67 text-overflow: ellipsis; | 93 text-overflow: ellipsis; |
| 68 white-space: nowrap; | 94 white-space: nowrap; |
| 69 } | 95 } |
| 70 | 96 |
| 71 #user-list .list-item .on-device { | 97 paper-listbox paper-item .on-device { |
| 72 -webkit-margin-start: 10px; | 98 -webkit-margin-start: 10px; |
| 73 flex-shrink: 0; | 99 flex-shrink: 0; |
| 74 } | 100 } |
| 75 | 101 |
| 76 #user-list .list-item.selectable.iron-selected { | |
| 77 background: var(--paper-grey-200); | |
| 78 } | |
| 79 | |
| 80 #actions { | 102 #actions { |
| 81 margin-top: 20px; | 103 margin-top: 20px; |
| 82 padding: 16px; | 104 padding: 16px; |
| 83 } | 105 } |
| 84 </style> | 106 </style> |
| 85 <template is="dom-if" if="[[!popupHidden_]]"> | 107 <template is="dom-if" if="[[!popupHidden_]]"> |
| 86 <div id="backdrop"> | 108 <div id="backdrop"> |
| 87 <div id="dialog"> | 109 <div id="dialog"> |
| 88 <div id="title-bar" class="horizontal justified layout"> | 110 <div id="title-bar" class="horizontal justified layout"> |
| 89 <span id="title">$i18n{supervisedUserImportTitle}</span> | 111 <span id="title">$i18n{supervisedUserImportTitle}</span> |
| 90 <iron-icon icon="close" on-tap="onCancelTap_"></iron-icon> | 112 <paper-icon-button icon="close" on-tap="onCancelTap_"> |
| 113 </paper-icon-button> |
| 91 </div> | 114 </div> |
| 92 <div id="message">[[getMessage_(supervisedUsers_)]]</div> | 115 <div id="message">[[getMessage_(supervisedUsers_)]]</div> |
| 93 <div id="user-list" class="content-area"> | 116 <paper-listbox selected="{{supervisedUserIndex_}}"> |
| 94 <iron-selector selected="{{supervisedUserIndex_}}" | 117 <template is="dom-repeat" items="[[supervisedUsers_]]"> |
| 95 selectable=".selectable"> | 118 <paper-item disabled="[[item.onCurrentDevice]]"> |
| 96 <template is="dom-repeat" items="[[supervisedUsers_]]"> | 119 <img class="profile-img" src="[[item.iconURL]]"></img> |
| 97 <div class$="[[getUserClassNames_(item)]]"> | 120 <div class="profile-name">[[item.name]]</div> |
| 98 <img class="profile-img" src="[[item.iconURL]]"></img> | 121 <div class="on-device" hidden="[[!item.onCurrentDevice]]"> |
| 99 <div class="profile-name">[[item.name]]</div> | 122 $i18n{supervisedUserAlreadyOnThisDevice} |
| 100 <div class="on-device" hidden="[[!item.onCurrentDevice]]"> | |
| 101 $i18n{supervisedUserAlreadyOnThisDevice} | |
| 102 </div> | |
| 103 </div> | 123 </div> |
| 104 </template> | 124 </paper-item> |
| 105 </iron-selector> | 125 </template> |
| 106 </div> | 126 </paper-listbox> |
| 107 <div id="actions" class="horizontal end-justified layout"> | 127 <div id="actions" class="horizontal end-justified layout"> |
| 108 <paper-button id="cancel" class="action secondary" | 128 <paper-button id="cancel" class="action secondary" |
| 109 on-tap="onCancelTap_"> | 129 on-tap="onCancelTap_"> |
| 110 $i18n{cancel} | 130 $i18n{cancel} |
| 111 </paper-button> | 131 </paper-button> |
| 112 <paper-button id="import" class="action primary" | 132 <paper-button id="import" class="action primary" |
| 113 on-tap="onImportTap_" | 133 on-tap="onImportTap_" |
| 114 disabled="[[isImportDisabled_(supervisedUserIndex_)]]"> | 134 disabled="[[isImportDisabled_(supervisedUserIndex_)]]"> |
| 115 $i18n{supervisedUserImportOk} | 135 $i18n{supervisedUserImportOk} |
| 116 </paper-button> | 136 </paper-button> |
| 117 </div> | 137 </div> |
| 118 </div> | 138 </div> |
| 119 </div> | 139 </div> |
| 120 </template> | 140 </template> |
| 121 </template> | 141 </template> |
| 122 <script src="chrome://md-user-manager/import_supervised_user.js"></script> | 142 <script src="chrome://md-user-manager/import_supervised_user.js"></script> |
| 123 </dom-module> | 143 </dom-module> |
| OLD | NEW |