| OLD | NEW |
| 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> |
| 2 <link rel="import" href="chrome://resources/html/polymer.html"> | 2 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 5 <link rel="import" href="lock_screen_constants.html"> | 5 <link rel="import" href="lock_screen_constants.html"> |
| 6 <link rel="import" href="../settings_shared_css.html"> | 6 <link rel="import" href="../settings_shared_css.html"> |
| 7 <link rel="import" href="../settings_shared_css.html"> | |
| 8 | 7 |
| 9 <dom-module id="settings-password-prompt-dialog"> | 8 <dom-module id="settings-password-prompt-dialog"> |
| 10 <template> | 9 <template> |
| 11 <style include="settings-shared"> | 10 <style include="settings-shared"> |
| 12 #passwordInput { | 11 #passwordInput { |
| 13 display: inline-block; | 12 display: inline-block; |
| 14 } | 13 } |
| 15 | 14 |
| 16 .settings-box { | 15 .settings-box { |
| 17 padding: 0; | 16 padding: 0; |
| 18 } | 17 } |
| 19 </style> | 18 </style> |
| 20 | 19 |
| 21 <dialog is="cr-dialog" id="dialog" on-close="onClose_" | 20 <dialog is="cr-dialog" id="dialog" on-close="onClose_" |
| 22 close-text="$i18n{close}"> | 21 close-text="$i18n{close}"> |
| 23 <div class="title">$i18n{passwordPromptTitle}</div> | 22 <div class="title">$i18n{passwordPromptTitle}</div> |
| 24 <div class="body"> | 23 <div class="body"> |
| 25 | 24 |
| 26 <div class="settings-box first">$i18n{passwordPromptEnterPassword}</div> | 25 <div class="settings-box first">$i18n{passwordPromptEnterPassword}</div> |
| 27 | 26 |
| 28 <paper-input id="passwordInput" type="password" autofocus | 27 <paper-input id="passwordInput" type="password" autofocus |
| 29 label="$i18n{passwordPromptPasswordLabel}" | 28 label="$i18n{passwordPromptPasswordLabel}" |
| 30 no-label-float | 29 value="{{password_}}" |
| 31 value="{{password_}}" | 30 invalid$="[[passwordInvalid_]]" |
| 32 invalid$="[[passwordInvalid_]]" | 31 error-message="$i18n{passwordPromptInvalidPassword}" |
| 33 error-message="$i18n{passwordPromptInvalidPassword}" | 32 aria-disabled="false"> |
| 34 aria-disabled="false"> | |
| 35 </paper-input> | 33 </paper-input> |
| 36 | 34 |
| 37 <div class="button-strip"> | 35 <div class="button-strip"> |
| 38 <paper-button class="cancel-button" on-tap="onCancelTap_"> | 36 <paper-button class="cancel-button" on-tap="onCancelTap_"> |
| 39 $i18n{cancel} | 37 $i18n{cancel} |
| 40 </paper-button> | 38 </paper-button> |
| 41 | 39 |
| 42 <paper-button class="action-button" on-tap="submitPassword_" | 40 <paper-button class="action-button" on-tap="submitPassword_" |
| 43 disabled$="[[!enableConfirm_(password_, | 41 disabled$="[[!enableConfirm_(password_, |
| 44 passwordInvalid_)]]"> | 42 passwordInvalid_)]]"> |
| 45 $i18n{confirm} | 43 $i18n{confirm} |
| 46 </paper-button> | 44 </paper-button> |
| 47 </div> | 45 </div> |
| 48 </div> | 46 </div> |
| 49 </dialog> | 47 </dialog> |
| 50 </template> | 48 </template> |
| 51 <script src="password_prompt_dialog.js"></script> | 49 <script src="password_prompt_dialog.js"></script> |
| 52 </dom-module> | 50 </dom-module> |
| OLD | NEW |