OLD | NEW |
(Empty) | |
| 1 <link rel="import" href="chrome://resources/cr_elements/network/cr_network_icon.
html"> |
| 2 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm
l"> |
| 3 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> |
| 4 <link rel="import" href="chrome://resources/html/polymer.html"> |
| 5 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f
lex-layout-classes.html"> |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> |
| 8 <link rel="import" href="internet_shared_css.html"> |
| 9 <link rel="import" href="network_config_input.html"> |
| 10 <link rel="import" href="network_config_select.html"> |
| 11 |
| 12 <dom-module id="settings-internet-config"> |
| 13 <template> |
| 14 <style include="internet-shared iron-flex"> |
| 15 </style> |
| 16 |
| 17 <!-- Title section: Icon + name. --> |
| 18 <div class="settings-box first"> |
| 19 <div class="start layout horizontal center"> |
| 20 <cr-network-icon network-state="[[networkProperties_]]" is-list-item> |
| 21 </cr-network-icon> |
| 22 <div class="title">[[title_]]</div> |
| 23 </div> |
| 24 <div id="buttonDiv"> |
| 25 <paper-button class="secondary-button" on-tap="onCancelTap_"> |
| 26 $i18n{cancel} |
| 27 </paper-button> |
| 28 <template is="dom-if" if="[[guid_]]"> |
| 29 <paper-button class="primary-button" on-tap="onSaveTap_" |
| 30 disabled="[[!saveIsEnabled_(configProperties_.*)]]"> |
| 31 $i18n{save} |
| 32 </paper-button> |
| 33 </template> |
| 34 <template is="dom-if" if="[[!guid_]]"> |
| 35 <paper-button class="primary-button" on-tap="onConnectTap_" |
| 36 disabled="[[!connectIsEnabled_(configProperties_.*)]]"> |
| 37 $i18n{networkButtonConnect} |
| 38 </paper-button> |
| 39 </template> |
| 40 </div> |
| 41 </div> |
| 42 |
| 43 <!-- WiFi --> |
| 44 <template is="dom-if" |
| 45 if="[[isType_(NetworkType_.WI_FI, networkProperties_.Type)]]"> |
| 46 <div class="settings-box"> |
| 47 <div id="shareLabel" class="start">$i18n{networkConfigShare}</div> |
| 48 <paper-toggle-button id="share" checked="{{shareNetwork_}}" |
| 49 disabled="[[!shareIsEnabled_(guid_, configProperties_.*)]]" |
| 50 aria-labelledby="shareLabel"> |
| 51 </paper-toggle-button> |
| 52 </div> |
| 53 <network-config-input id="ssid" label="$i18n{OncWiFi-SSID}" |
| 54 value="{{configProperties_.WiFi.SSID}}" disabled="[[guid_]]"> |
| 55 </network-config-input> |
| 56 <network-config-select id="security" label="$i18n{OncWiFi-Security}" |
| 57 value="{{configProperties_.WiFi.Security}}" disabled="[[guid_]]" |
| 58 items="[[securityItems_]]" onc-prefix="WiFi.Security"> |
| 59 </network-config-select> |
| 60 <network-config-input label="$i18n{OncWiFi-Passphrase}" |
| 61 value="{{configProperties_.WiFi.Passphrase}}" |
| 62 hidden="[[!configRequiresPassphrase_(configProperties_.*)]]"> |
| 63 </network-config-input> |
| 64 </template> |
| 65 |
| 66 <!-- EAP (WiFi, WiMAX, Ethernet) --> |
| 67 <template is="dom-if" if="[[showEap_]]"> |
| 68 <network-config-select id="outer" label="$i18n{OncEAP-Outer}" |
| 69 value="{{configProperties_.WiFi.EAP.Outer}}" |
| 70 items="[[eapOuterItems_]]" onc-prefix="EAP.Outer"> |
| 71 </network-config-select> |
| 72 <network-config-select id="inner" label="$i18n{OncEAP-Inner}" |
| 73 value="{{configProperties_.WiFi.EAP.Inner}}" |
| 74 items="[[getEapInnerItems_(configProperties_.WiFi.EAP.Outer)]]" |
| 75 onc-prefix="EAP.Inner" hidden="[[!showEap_.Inner]]"> |
| 76 </network-config-select> |
| 77 <network-config-input label="$i18n{OncEAP-SubjectMatch}" |
| 78 value="{{configProperties_.WiFi.EAP.SubjectMatch}}" |
| 79 hidden="[[!showEap.SubjectMatch]]"> |
| 80 </network-config-input> |
| 81 <network-config-input label="$i18n{OncEAP-Identity}" |
| 82 value="{{configProperties_.WiFi.EAP.Identity}}" |
| 83 hidden="[[!showEap.Identity]]"> |
| 84 </network-config-input> |
| 85 <network-config-input label="$i18n{OncEAP-Password}" |
| 86 value="{{configProperties_.WiFi.EAP.Password}}" |
| 87 hidden="[[!showEap.Password]]"> |
| 88 </network-config-input> |
| 89 <network-config-input label="$i18n{OncEAP-AnonymousIdentity}" |
| 90 value="{{configProperties_.WiFi.EAP.AnonymousIdentity}}" |
| 91 hidden="[[!showEap.AnonymousIdentity]]"> |
| 92 </network-config-input> |
| 93 |
| 94 </template> |
| 95 |
| 96 <!-- TODO(stevenjb): Error message for config or cert failure --> |
| 97 |
| 98 </template> |
| 99 <script src="internet_config.js"></script> |
| 100 </dom-module> |
OLD | NEW |