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