| <link rel="import" href="chrome://resources/html/polymer.html"> |
| |
| <link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html"> |
| <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html"> |
| <link rel="import" href="chrome://resources/cr_elements/cr_input/cr_input.html"> |
| <link rel="import" href="chrome://resources/cr_elements/shared_style_css.html"> |
| <link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html"> |
| |
| <dom-module id="viewer-password-screen"> |
| <template> |
| <style include="cr-shared-style"> |
| #password { |
| margin-top: var(--cr-form-field-bottom-spacing); |
| } |
| </style> |
| <cr-dialog id="dialog" no-cancel> |
| <div slot="title">[[strings.passwordDialogTitle]]</div> |
| <div slot="body"> |
| <div id="message">[[strings.passwordPrompt]]</div> |
| <cr-input id="password" |
| type="password" |
| error-message="[[strings.passwordInvalid]]" |
| invalid="[[invalid]]" |
| autofocus> |
| </cr-input> |
| </div> |
| <div slot="button-container"> |
| <cr-button id="submit" class="action-button" on-click="submit"> |
| [[strings.passwordSubmit]] |
| </cr-button> |
| </div> |
| </cr-dialog> |
| </template> |
| <script src="viewer-password-screen.js"></script> |
| </dom-module> |