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