OLD | NEW |
(Empty) | |
| 1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> |
| 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-list/iron-list.htm
l"> |
| 5 <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-icon-button/paper
-icon-button.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 8 <link rel="import" href="/settings_shared_css.html"> |
| 9 |
| 10 <dom-module id="settings-fingerprint-list"> |
| 11 <template> |
| 12 <style include="settings-shared"> |
| 13 .list-item { |
| 14 border-bottom: 1px solid black; |
| 15 display: flex; |
| 16 } |
| 17 |
| 18 .list-item[index='0'] { |
| 19 border-top: 1px solid black; |
| 20 } |
| 21 |
| 22 .warning-text { |
| 23 font-style: italic; |
| 24 } |
| 25 </style> |
| 26 |
| 27 <div> |
| 28 <div>$i18n{lockScreenRegisteredFingerprints}</div> |
| 29 <iron-list id="fingerprintsList" items="[[fingerprints_]]"> |
| 30 <template> |
| 31 <div class="list-item" index$="[[index]]"> |
| 32 <paper-input value="{{item.name}}"></paper-input> |
| 33 <paper-icon-button icon="cr:delete" on-tap="onFingerprintDelete_"> |
| 34 </paper-icon-button> |
| 35 </div> |
| 36 </template> |
| 37 </iron-list> |
| 38 <div class="settings-box first radio-indent"> |
| 39 <paper-button is="action-link" on-tap="onAddFingerprint_" |
| 40 disabled="[[!canAddNewFingerprint_(fingerprints_.length)]]"> |
| 41 [[getFingerprintButtonText_(fingerprints_.length)]] |
| 42 </paper-button> |
| 43 </div> |
| 44 <div class="warning-text"> |
| 45 $i18n{lockScreenFingerprintWarning} |
| 46 </div> |
| 47 </div> |
| 48 </template> |
| 49 <script src="fingerprint_list.js"></script> |
| 50 </dom-module> |
OLD | NEW |