Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1378)

Side by Side Diff: chrome/browser/resources/settings/internet_page/internet_config.html

Issue 2848683003: MD Settings: Add settings-internet-config (WiFi only, no certs) (Closed)
Patch Set: Feedback, add network-confg-input + select Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 $i18n{save}
31 </paper-button>
32 </template>
33 <template is="dom-if" if="[[!guid_]]">
34 <paper-button class="primary-button" on-tap="onSaveTap_"
35 disabled="[[!connectIsEnabled_(configProperties_.*)]]">
36 $i18n{networkButtonConnect}
37 </paper-button>
38 </template>
39 </div>
40 </div>
41
42 <!-- WiFi -->
43 <template is="dom-if"
44 if="[[isType_(NetworkType_.WI_FI, networkProperties_.Type)]]">
45 <div class="settings-box">
46 <div id="shareLabel" class="start">$i18n{networkConfigShare}</div>
47 <paper-toggle-button id="share" checked="{{shareNetwork_}}"
48 disabled="[[!shareIsEnabled_(guid_, configProperties_.*)]]"
49 aria-labelledby="shareLabel">
50 </paper-toggle-button>
51 </div>
52 <network-config-input id="ssid" label="$i18n{OncWiFi-SSID}"
53 value="{{configProperties_.WiFi.SSID}}" disabled="[[guid_]]">
54 </network-config-input>
55 <network-config-select id="security" label="$i18n{OncWiFi-Security}"
56 value="{{configProperties_.WiFi.Security}}" disabled="[[guid_]]"
57 items="[[securityItems_]]" onc-prefix="WiFi.Security">
58 </network-config-select>
59 <network-config-input label="$i18n{OncWiFi-Passphrase}"
60 value="{{configProperties_.WiFi.Passphrase}}"
61 hidden="[[!showWiFiPassphrase_(configProperties_.*)]]">
62 </network-config-input>
63 </template>
64
65 <!-- EAP (WiFi, WiMAX, Ethernet) -->
66 <template is="dom-if" if="[[showEap_]]">
67 <network-config-select id="outer" label="$i18n{OncEAP-Outer}"
68 value="{{configProperties_.WiFi.EAP.Outer}}"
69 items="[[eapOuterItems_]]" onc-prefix="EAP.Outer">
70 </network-config-select>
71 <network-config-select id="inner" label="$i18n{OncEAP-Inner}"
72 value="{{configProperties_.WiFi.EAP.Inner}}"
73 items="[[getEapInnerItems_(configProperties_.WiFi.EAP.Outer)]]"
74 onc-prefix="EAP.Inner" hidden="[[!showEap_.Inner]]">
75 </network-config-select>
76 <network-config-input label="$i18n{OncEAP-SubjectMatch}"
77 value="{{configProperties_.WiFi.EAP.SubjectMatch}}"
78 hidden="[[!showEap.SubjectMatch]]">
79 </network-config-input>
80 <network-config-input label="$i18n{OncEAP-Identity}"
81 value="{{configProperties_.WiFi.EAP.Identity}}"
82 hidden="[[!showEap.Identity]]">
83 </network-config-input>
84 <network-config-input label="$i18n{OncEAP-Password}"
85 value="{{configProperties_.WiFi.EAP.Password}}"
86 hidden="[[!showEap.Password]]">
87 </network-config-input>
88 <network-config-input label="$i18n{OncEAP-AnonymousIdentity}"
89 value="{{configProperties_.WiFi.EAP.AnonymousIdentity}}"
90 hidden="[[!showEap.AnonymousIdentity]]">
91 </network-config-input>
92
93 </template>
94
95 <!-- TODO(stevenjb): Error message for config or cert failure -->
96
97 </template>
98 <script src="internet_config.js"></script>
99 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698