| <link rel="import" href="chrome://resources/html/polymer.html"> |
| |
| <link rel="import" href="chrome://resources/cr_elements/cr_checkbox/cr_checkbox.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/html/web_ui_listener_behavior.html"> |
| <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> |
| <link rel="import" href="../i18n_setup.html"> |
| <link rel="import" href="../settings_shared_css.html"> |
| <link rel="import" href="constants.html"> |
| <link rel="import" href="site_settings_behavior.html"> |
| |
| <dom-module id="add-site-dialog"> |
| <template> |
| <style include="settings-shared"> |
| #incognito { |
| padding-bottom: 10px; |
| } |
| </style> |
| <cr-dialog id="dialog" close-text="$i18n{close}"> |
| <div slot="title">$i18n{addSiteTitle}</div> |
| <div slot="body"> |
| <cr-input id="site" label="$i18n{addSite}" |
| placeholder="$i18n{addSiteExceptionPlaceholder}" |
| value="{{site_}}" on-input="validate_" |
| error-message="{{errorMessage_}}" spellcheck="false" |
| autofocus></cr-input> |
| <cr-checkbox id="incognito" |
| hidden$="[[!showIncognitoSessionOnly_(hasIncognito, |
| contentSetting)]]"> |
| $i18n{incognitoSiteOnly} |
| </cr-checkbox> |
| </div> |
| <div slot="button-container"> |
| <paper-button class="cancel-button" on-click="onCancelTap_"> |
| $i18n{cancel} |
| </paper-button> |
| <paper-button class="action-button" id="add" on-click="onSubmit_" |
| disabled> |
| $i18n{add} |
| </paper-button> |
| </div> |
| </cr-dialog> |
| </template> |
| <script src="add_site_dialog.js"></script> |
| </dom-module> |