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"> | 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"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
9 | 9 |
10 <dom-module id="import-supervised-user"> | 10 <dom-module id="import-supervised-user"> |
(...skipping 10 matching lines...) Expand all Loading... |
21 right: 0; | 21 right: 0; |
22 top: 0; | 22 top: 0; |
23 } | 23 } |
24 | 24 |
25 #dialog { | 25 #dialog { |
26 background: white; | 26 background: white; |
27 border-radius: 2px; | 27 border-radius: 2px; |
28 box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), | 28 box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), |
29 0 6px 30px 5px rgba(0, 0, 0, 0.12), | 29 0 6px 30px 5px rgba(0, 0, 0, 0.12), |
30 0 8px 10px -5px rgba(0, 0, 0, 0.4); | 30 0 8px 10px -5px rgba(0, 0, 0, 0.4); |
31 color: var(--paper-grey-800); | 31 color: var(--main-text-color); |
32 width: 512px; | 32 width: 512px; |
33 } | 33 } |
34 | 34 |
35 #title-bar { | 35 #title-bar { |
36 align-items: center; | 36 align-items: center; |
37 border-bottom: 1px solid rgba(0, 0, 0, .12); | 37 border-bottom: 1px solid rgba(0, 0, 0, .12); |
38 font-size: 16px; | 38 font-size: 16px; |
39 padding: 16px; | 39 padding: 16px; |
40 } | 40 } |
41 | 41 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 74 } |
75 | 75 |
76 #user-list .list-item.selectable.iron-selected { | 76 #user-list .list-item.selectable.iron-selected { |
77 background: var(--paper-grey-200); | 77 background: var(--paper-grey-200); |
78 } | 78 } |
79 | 79 |
80 #actions { | 80 #actions { |
81 margin-top: 20px; | 81 margin-top: 20px; |
82 padding: 16px; | 82 padding: 16px; |
83 } | 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> | 84 </style> |
108 <template is="dom-if" if="[[!popupHidden_]]"> | 85 <template is="dom-if" if="[[!popupHidden_]]"> |
109 <div id="backdrop"> | 86 <div id="backdrop"> |
110 <div id="dialog"> | 87 <div id="dialog"> |
111 <div id="title-bar" class="horizontal justified layout"> | 88 <div id="title-bar" class="horizontal justified layout"> |
112 <span id="title">[[i18n('supervisedUserImportTitle')]]</span> | 89 <span id="title">[[i18n('supervisedUserImportTitle')]]</span> |
113 <iron-icon icon="close" on-tap="onCancelTap_"></iron-icon> | 90 <iron-icon icon="close" on-tap="onCancelTap_"></iron-icon> |
114 </div> | 91 </div> |
115 <div id="message">[[getMessage_(supervisedUsers_)]]</div> | 92 <div id="message">[[getMessage_(supervisedUsers_)]]</div> |
116 <div id="user-list" class="content-area"> | 93 <div id="user-list" class="content-area"> |
117 <iron-selector selected="{{supervisedUserIndex_}}" | 94 <iron-selector selected="{{supervisedUserIndex_}}" |
118 selectable=".selectable"> | 95 selectable=".selectable"> |
119 <template is="dom-repeat" items="[[supervisedUsers_]]"> | 96 <template is="dom-repeat" items="[[supervisedUsers_]]"> |
120 <div class$="[[getUserClassNames_(item)]]"> | 97 <div class$="[[getUserClassNames_(item)]]"> |
121 <img class="profile-img" src="[[item.iconURL]]"></img> | 98 <img class="profile-img" src="[[item.iconURL]]"></img> |
122 <div class="profile-name">[[item.name]]</div> | 99 <div class="profile-name">[[item.name]]</div> |
123 <div class="on-device" hidden="[[!item.onCurrentDevice]]"> | 100 <div class="on-device" hidden="[[!item.onCurrentDevice]]"> |
124 [[i18n('supervisedUserAlreadyOnThisDevice')]] | 101 [[i18n('supervisedUserAlreadyOnThisDevice')]] |
125 </div> | 102 </div> |
126 </div> | 103 </div> |
127 </template> | 104 </template> |
128 </iron-selector> | 105 </iron-selector> |
129 </div> | 106 </div> |
130 <div id="actions" class="horizontal end-justified layout"> | 107 <div id="actions" class="horizontal end-justified layout"> |
131 <paper-button id="cancel" on-tap="onCancelTap_"> | 108 <paper-button id="cancel" class="action secondary" |
| 109 on-tap="onCancelTap_"> |
132 [[i18n('cancel')]] | 110 [[i18n('cancel')]] |
133 </paper-button> | 111 </paper-button> |
134 <paper-button id="import" on-tap="onImportTap_" | 112 <paper-button id="import" class="action primary" |
| 113 on-tap="onImportTap_" |
135 disabled="[[isImportDisabled_(supervisedUserIndex_)]]"> | 114 disabled="[[isImportDisabled_(supervisedUserIndex_)]]"> |
136 [[i18n('supervisedUserImportOk')]] | 115 [[i18n('supervisedUserImportOk')]] |
137 </paper-button> | 116 </paper-button> |
138 </div> | 117 </div> |
139 </div> | 118 </div> |
140 </div> | 119 </div> |
141 </template> | 120 </template> |
142 </template> | 121 </template> |
143 <script src="chrome://md-user-manager/import_supervised_user.js"></script> | 122 <script src="chrome://md-user-manager/import_supervised_user.js"></script> |
144 </dom-module> | 123 </dom-module> |
OLD | NEW |