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/html/web_ui_listener_behavior.html"> | 3 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-a11y-keys/iron-a11
y-keys.html"> | |
5 <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-button/paper-butt
on.html"> |
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
7 <link rel="import" href="../i18n_setup.html"> | 6 <link rel="import" href="../i18n_setup.html"> |
8 <link rel="import" href="../settings_shared_css.html"> | 7 <link rel="import" href="../settings_shared_css.html"> |
9 <link rel="import" href="constants.html"> | 8 <link rel="import" href="constants.html"> |
10 <link rel="import" href="site_settings_behavior.html"> | 9 <link rel="import" href="site_settings_behavior.html"> |
11 | 10 |
12 <dom-module id="add-site-dialog"> | 11 <dom-module id="add-site-dialog"> |
13 <template> | 12 <template> |
14 <style include="settings-shared"> | 13 <style include="settings-shared"> |
15 #incognito { | 14 #incognito { |
16 margin-bottom: 2px; | 15 margin-bottom: 2px; |
17 margin-top: 15px; | 16 margin-top: 15px; |
18 } | 17 } |
19 </style> | 18 </style> |
20 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> | 19 <dialog is="cr-dialog" id="dialog" close-text="$i18n{close}"> |
21 <div class="title">$i18n{addSiteTitle}</div> | 20 <div class="title">$i18n{addSiteTitle}</div> |
22 <div class="body"> | 21 <div class="body"> |
23 <iron-a11y-keys id="keys" keys="enter" | |
24 on-keys-pressed="onSubmit_"></iron-a11y-keys> | |
25 <paper-input id="site" always-float-label label="$i18n{addSite}" | 22 <paper-input id="site" always-float-label label="$i18n{addSite}" |
26 placeholder="$i18n{addSiteExceptionPlaceholder}" | 23 placeholder="$i18n{addSiteExceptionPlaceholder}" |
27 value="{{site_}}" on-input="validate_" | 24 value="{{site_}}" on-input="validate_" |
28 error-message="$i18n{notValidWebAddress}" autofocus></paper-input> | 25 error-message="$i18n{notValidWebAddress}" autofocus></paper-input> |
29 <paper-checkbox id="incognito"> | 26 <paper-checkbox id="incognito"> |
30 $i18n{incognitoSiteOnly} | 27 $i18n{incognitoSiteOnly} |
31 </paper-checkbox> | 28 </paper-checkbox> |
32 </div> | 29 </div> |
33 <div class="button-container"> | 30 <div class="button-container"> |
34 <paper-button class="cancel-button" on-tap="onCancelTap_"> | 31 <paper-button class="cancel-button" on-tap="onCancelTap_"> |
35 $i18n{cancel} | 32 $i18n{cancel} |
36 </paper-button> | 33 </paper-button> |
37 <paper-button class="action-button" id="add" | 34 <paper-button class="action-button" id="add" |
38 on-tap="onSubmit_" disabled> | 35 on-tap="onSubmit_" disabled> |
39 $i18n{add} | 36 $i18n{add} |
40 </paper-button> | 37 </paper-button> |
41 </div> | 38 </div> |
42 </dialog> | 39 </dialog> |
43 </template> | 40 </template> |
44 <script src="add_site_dialog.js"></script> | 41 <script src="add_site_dialog.js"></script> |
45 </dom-module> | 42 </dom-module> |
OLD | NEW |