OLD | NEW |
---|---|
(Empty) | |
1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.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"> | |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input .html"> | |
5 <link rel="import" href="/settings_shared_css.html"> | |
6 <link rel="import" href="/settings_shared_css.html"> | |
7 | |
8 <dom-module id="settings-password-prompt-dialog"> | |
9 <template> | |
10 <style include="settings-shared"> | |
11 #passwordInput { | |
12 display: inline-block; | |
13 } | |
14 | |
15 .settings-box { | |
16 padding: 0; | |
17 } | |
18 | |
19 .align-end { | |
20 justify-content: flex-end; | |
21 } | |
22 </style> | |
23 | |
24 <dialog is="cr-dialog" id="dialog"> | |
25 <div class="title">$i18n{passwordPromptTitle}</div> | |
26 <div class="body"> | |
27 | |
28 <div class="settings-box first">$i18n{passwordPromptEnterPassword}</div> | |
29 | |
30 <paper-input id="passwordInput" type="password" autofocus | |
31 label="$i18n{passwordPromptPasswordLabel}" | |
32 no-label-float | |
33 value="{{password_}}" | |
34 on-change="checkPassword_" | |
35 invalid$="[[passwordInvalid_]]" | |
36 error-message="$i18n{passwordPromptInvalidPassword}" | |
37 aria-disabled="false"> | |
38 </paper-input> | |
39 | |
40 <div class="align-end settings-box continuation"> | |
tommycli
2016/08/05 17:46:19
Does a plain div with the "button-strip" class wor
jdufault
2016/08/05 20:59:52
Done, but the settings-box css is still needed to
| |
41 <paper-button class="cancel-button" on-tap="close"> | |
42 $i18n{cancel} | |
43 </paper-button> | |
44 | |
45 <paper-button class="action-button" on-tap="checkPassword_" | |
46 disabled$="[[!enableConfirm_(password_, | |
47 passwordInvalid_)]]"> | |
48 $i18n{confirm} | |
49 </paper-button> | |
50 </div> | |
51 </div> | |
52 </dialog> | |
53 </template> | |
54 <script src="password_prompt_dialog.js"></script> | |
55 </dom-module> | |
OLD | NEW |