| OLD | NEW |
| 1 <link rel="import" href="/shared_styles.html"> | 1 <link rel="import" href="/shared_styles.html"> |
| 2 <link rel="import" href="/user_manager_dialog.html"> | 2 <link rel="import" href="/user_manager_dialog.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/iron-f
lex-layout-classes.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 6 <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-item/paper-item.h
tml"> | 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.h
tml"> |
| 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis
tbox.html"> | 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis
tbox.html"> |
| 9 | 9 |
| 10 <dom-module id="import-supervised-user"> | 10 <dom-module id="import-supervised-user"> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 }; | 35 }; |
| 36 --paper-item-disabled: { | 36 --paper-item-disabled: { |
| 37 color: inherit; | 37 color: inherit; |
| 38 }; | 38 }; |
| 39 --paper-item-focused: { | 39 --paper-item-focused: { |
| 40 background: rgba(0, 0, 0, .04); | 40 background: rgba(0, 0, 0, .04); |
| 41 }; | 41 }; |
| 42 --paper-item-focused-before: { | 42 --paper-item-focused-before: { |
| 43 background: none; | 43 background: none; |
| 44 }; | 44 }; |
| 45 --paper-item-selected: { | |
| 46 background: rgba(0, 0, 0, .04); | |
| 47 font-weight: normal; | |
| 48 }; | |
| 49 } | 45 } |
| 50 | 46 |
| 51 paper-listbox paper-item .profile-img { | 47 paper-listbox paper-item .profile-img { |
| 52 flex-shrink: 0; | 48 flex-shrink: 0; |
| 53 } | 49 } |
| 54 | 50 |
| 55 paper-listbox paper-item .profile-name { | 51 paper-listbox paper-item .profile-name { |
| 56 -webkit-margin-start: 10px; | 52 -webkit-margin-start: 10px; |
| 57 overflow: hidden; | 53 overflow: hidden; |
| 58 text-overflow: ellipsis; | 54 text-overflow: ellipsis; |
| 59 white-space: nowrap; | 55 white-space: nowrap; |
| 60 } | 56 } |
| 61 | 57 |
| 62 paper-listbox paper-item .on-device { | 58 paper-listbox paper-item .on-device { |
| 63 -webkit-margin-start: 10px; | 59 -webkit-margin-start: 10px; |
| 64 flex-shrink: 0; | 60 flex-shrink: 0; |
| 65 } | 61 } |
| 66 </style> | 62 </style> |
| 67 <user-manager-dialog id="dialog"> | 63 <user-manager-dialog id="dialog"> |
| 68 <div class="title">$i18n{supervisedUserImportTitle}</div> | 64 <div class="title">$i18n{supervisedUserImportTitle}</div> |
| 69 <div class="body"> | 65 <div class="body"> |
| 70 <div id="message">[[getMessage_(supervisedUsers_)]]</div> | 66 <div id="message">$i18n{supervisedUserImportText}</div> |
| 71 <paper-listbox class="no-padding" selected="{{supervisedUserIndex_}}"> | 67 <paper-listbox class="no-padding" selected="{{supervisedUserIndex_}}"> |
| 72 <template is="dom-repeat" items="[[supervisedUsers_]]"> | 68 <template is="dom-repeat" items="[[supervisedUsers_]]"> |
| 73 <paper-item disabled="[[item.onCurrentDevice]]"> | 69 <paper-item disabled="[[item.onCurrentDevice]]"> |
| 74 <img class="profile-img" src="[[item.iconURL]]"></img> | 70 <img class="profile-img" src="[[item.iconURL]]"></img> |
| 75 <div class="profile-name">[[item.name]]</div> | 71 <div class="profile-name">[[item.name]]</div> |
| 76 <div class="on-device" hidden="[[!item.onCurrentDevice]]"> | 72 <div class="on-device" hidden="[[!item.onCurrentDevice]]"> |
| 77 $i18n{supervisedUserAlreadyOnThisDevice} | 73 $i18n{supervisedUserAlreadyOnThisDevice} |
| 78 </div> | 74 </div> |
| 79 </paper-item> | 75 </paper-item> |
| 80 </template> | 76 </template> |
| 81 </paper-listbox> | 77 </paper-listbox> |
| 82 </div> | 78 </div> |
| 83 <div class="footer horizontal end-justified layout"> | 79 <div class="footer horizontal end-justified layout"> |
| 84 <paper-button id="cancel" class="action secondary" dialog-dismiss> | 80 <paper-button id="cancel" class="action secondary" dialog-dismiss> |
| 85 $i18n{cancel} | 81 $i18n{cancel} |
| 86 </paper-button> | 82 </paper-button> |
| 87 <paper-button id="import" class="action primary" | 83 <paper-button id="import" class="action primary" |
| 88 on-tap="onImportTap_" | 84 on-tap="onImportTap_" |
| 89 disabled="[[isImportDisabled_(supervisedUserIndex_)]]"> | 85 disabled="[[isImportDisabled_(supervisedUserIndex_)]]"> |
| 90 $i18n{supervisedUserImportOk} | 86 $i18n{supervisedUserImportOk} |
| 91 </paper-button> | 87 </paper-button> |
| 92 </div> | 88 </div> |
| 93 </user-manager-dialog> | 89 </user-manager-dialog> |
| 94 </template> | 90 </template> |
| 95 <script src="import_supervised_user.js"></script> | 91 <script src="import_supervised_user.js"></script> |
| 96 </dom-module> | 92 </dom-module> |
| OLD | NEW |