Chromium Code Reviews| Index: chrome/browser/resources/settings/site_settings/edit_exception_dialog.html |
| diff --git a/chrome/browser/resources/settings/site_settings/edit_exception_dialog.html b/chrome/browser/resources/settings/site_settings/edit_exception_dialog.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b7cba1a6975bac2ff85bb6ebe06ba5f372330e36 |
| --- /dev/null |
| +++ b/chrome/browser/resources/settings/site_settings/edit_exception_dialog.html |
| @@ -0,0 +1,30 @@ |
| +<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html"> |
| +<link rel="import" href="chrome://resources/html/polymer.html"> |
|
dschuyler
2017/02/23 01:31:49
Let's import polymer.html first; I hear it's the r
dpapad
2017/02/23 19:39:47
Correct. Done.
|
| +<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> |
| +<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html"> |
| +<link rel="import" href="../i18n_setup.html"> |
| +<link rel="import" href="site_settings_prefs_browser_proxy.html"> |
| + |
| +<dom-module id="settings-edit-exception-dialog"> |
| + <template> |
| + <style include="settings-shared"></style> |
| + <dialog is="cr-dialog" id="dialog"> |
| + <div class="title">$i18n{editSiteDialogTitle}</div> |
| + <div class="body"> |
| + <paper-input always-float-label id="url" label="$i18n{onStartupSiteUrl}" |
| + value="{{origin_}}" on-keypress="onKeypress_"> |
| + </paper-input> |
| + </div> |
| + <div class="button-container"> |
| + <div class="action-buttons"> |
| + <paper-button class="cancel-button" on-tap="onCancelTap_" |
| + id="cancel">$i18n{cancel}</paper-button> |
| + <paper-button id="actionButton" class="action-button" |
| + disabled="[[!origin_.length]]" |
|
dschuyler
2017/02/23 01:31:49
Please validate the url with something like this.b
dpapad
2017/02/23 19:39:47
Thanks. Done (and updated tests).
|
| + on-tap="onActionButtonTap_">$i18n{edit}</paper-button> |
| + </div> |
| + </div> |
| + </dialog> |
| + </template> |
| + <script src="edit_exception_dialog.js"></script> |
| +</dom-module> |