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