Index: chrome/browser/resources/settings/people_page/password_prompt_dialog.html |
diff --git a/chrome/browser/resources/settings/people_page/password_prompt_dialog.html b/chrome/browser/resources/settings/people_page/password_prompt_dialog.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8221eff3e19efa2766bb4bb47290a6074b02c9f4 |
--- /dev/null |
+++ b/chrome/browser/resources/settings/people_page/password_prompt_dialog.html |
@@ -0,0 +1,51 @@ |
+<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html"> |
+<link rel="import" href="chrome://resources/html/polymer.html"> |
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> |
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html"> |
+<link rel="import" href="/settings_shared_css.html"> |
+<link rel="import" href="/settings_shared_css.html"> |
+ |
+<dom-module id="settings-password-prompt-dialog"> |
+ <template> |
+ <style include="settings-shared"> |
+ #passwordInput { |
+ display: inline-block; |
+ } |
+ |
+ .settings-box { |
+ padding: 0; |
+ } |
+ </style> |
+ |
+ <dialog is="cr-dialog" id="dialog"> |
+ <div class="title">$i18n{passwordPromptTitle}</div> |
+ <div class="body"> |
+ |
+ <div class="settings-box first">$i18n{passwordPromptEnterPassword}</div> |
+ |
+ <paper-input id="passwordInput" type="password" autofocus |
+ label="$i18n{passwordPromptPasswordLabel}" |
+ no-label-float |
+ value="{{password_}}" |
+ on-change="checkPassword_" |
+ invalid$="[[passwordInvalid_]]" |
+ error-message="$i18n{passwordPromptInvalidPassword}" |
+ aria-disabled="false"> |
+ </paper-input> |
+ |
+ <div class="button-strip"> |
+ <paper-button class="cancel-button" on-tap="cancel"> |
+ $i18n{cancel} |
+ </paper-button> |
+ |
+ <paper-button class="action-button" on-tap="checkPassword_" |
+ disabled$="[[!enableConfirm_(password_, |
+ passwordInvalid_)]]"> |
+ $i18n{confirm} |
+ </paper-button> |
+ </div> |
+ </div> |
+ </dialog> |
+ </template> |
+ <script src="password_prompt_dialog.js"></script> |
+</dom-module> |