summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/pdf/elements/viewer-password-screen.html
blob: aebc16bf1389892932b58642e0de0a013581fb26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<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>