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

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: . 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/html/md_select_css.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-input/paper-input -container.html">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html">
stevenjb 2017/05/02 00:17:44 include iron-flex-layout-classes.html
9 <link rel="import" href="internet_shared_css.html">
10
11 <dom-module id="settings-internet-config">
12 <template>
13 <style include="internet-shared md-select iron-flex">
14 #title {
15 -webkit-padding-start: 8px;
16 font-size: 107.69%; /* 14px / 13px */
17 font-weight: 500;
18 }
19 </style>
20
21 <!-- Title section: Icon + name + connection state. -->
stevenjb 2017/05/02 00:17:44 Fix comment
22 <div class="settings-box first">
23 <div class="start layout horizontal center">
24 <cr-network-icon network-state="[[networkProperties_]]" is-list-item>
25 </cr-network-icon>
26 <div id="title">[[title_]]</div>
27 </div>
28 <div id="buttonDiv">
29 <paper-button class="secondary-button" on-tap="onCancelTap_">
30 $i18n{cancel}
31 </paper-button>
32 <paper-button class="primary-button" on-tap="onSaveTap_">
33 $i18n{save}
34 </paper-button>
35 </div>
36 </div>
37
38 <template is="dom-if"
39 if="[[isType_(NetworkType_.WI_FI, networkProperties_)]]">
40 <div class="settings-box">
41 <div id="shareLabel" class="start">$i18n{networkConfigShare}</div>
42 <paper-toggle-button checked="{{shareNetwork_}}" disabled="[[guid]]"
43 aria-labelledby="shareLabel">
44 </paper-toggle-button>
45 </div>
46
47 <div class="settings-box">
48 <div id="ssidLabel" class="start">$i18n{OncWiFi-SSID}</div>
49 <paper-input-container no-label-float>
50 <input is="iron-input" value="[[configProperties_.WiFi.SSID]]"
51 disabled="[[guid_]]" aria-labelledby="ssidLabel">
52 </paper-input-container>
53 </div>
54
55 <div class="settings-box">
56 <div id="securityLabel" class="start">$i18n{OncWiFi-Security}</div>
57 <select class="md-select" disabled$="[[guid]]"
58 value="{{configProperties_.WiFi.Security::change}}"
59 aria-labelledby="securityLabel">
60 <template is="dom-repeat" items="[[securityItems_]]">
61 <option value="[[item]]">
62 [[getOncLabel_(item, 'Wifi.Security')]]
63 </option>
64 </template>
65 </select>
66 </div>
67 </template>
68
69 <template is="dom-if" if="[[showPassphrase_(configProperties_.*)]]">
70 <div class="settings-box">
71 <div id="passphraseLabel" class="start">
72 $i18n{OncWiFi-Passphrase}
73 </div>
74 <paper-input-container no-label-float>
75 <input is="iron-input" type="password"
76 value="[[configProperties_.WiFi.Passphrase]]"
77 aria-labelledby="passphraseLabel">
78 </paper-input-container>
79 </div>
80 </template>
81
82 <template is="dom-if" if="[[showEap_(configProperties_.*)]]">
83 <div class="settings-box">
84 <div id="eapOuterLabel" class="start">$i18n{OncWiFi-EAP-Outer}</div>
85 <select class="md-select"
86 value="{{configProperties_.WiFi.EAP.Outer::change}}"
87 aria-labelledby="eapOuterLabel">
88 <template is="dom-repeat" items="[[eapOuterItems_]]">
89 <option value="[[item]]">
90 [[getOncLabel_(item, 'WiFi.EAP.Outer')]]
91 </option>
92 </template>
93 </select>
94 </div>
95 <div class="settings-box">
96 <div id="eapInnerLabel" class="start">$i18n{OncWiFi-EAP-Inner}</div>
97 <select class="md-select"
98 value="{{configProperties_.WiFi.EAP.Inner::change}}"
99 aria-labelledby="eapInnerLabel">
100 <template is="dom-repeat" items="[[eapInnerItems_]]">
101 <option value="[[item]]">
102 [[getOncLabel_(item, 'WiFi.EAP.Inner')]]
103 </option>
104 </template>
105 </select>
106 </div>
107 <div class="settings-box">
108 <div id="eapSubjectMatchLabel" class="start">
109 $i18n{OncWiFi-EAP-SubjectMatch}
110 </div>
111 <paper-input-container no-label-float>
112 <input is="iron-input"
113 value="[[configProperties_.WiFi.EAP.SubjectMatch]]"
114 aria-labelledby="eapSubjectMatchLabel">
115 </paper-input-container>
116 </div>
117 <div class="settings-box">
118 <div id="OncWiFi-EAP-Identity" class="start">
119 $i18n{OncWiFi-EAP-Identity}
120 </div>
121 <paper-input-container no-label-float>
122 <input is="iron-input"
123 value="[[configProperties_.WiFi.EAP.Identity]]"
124 aria-labelledby="eapIdentityLabel">
125 </paper-input-container>
126 </div>
127 <div class="settings-box">
128 <div id="eapPasswordLabel" class="start">
129 $i18n{OncWiFi-EAP-Password}
130 </div>
131 <paper-input-container no-label-float>
132 <input is="iron-input" type="password"
133 value="[[configProperties_.WiFi.EAP.Password]]"
134 disabled="[[guid_]]" aria-labelledby="eapPasswordLabel">
135 </paper-input-container>
136 </div>
137 <div class="settings-box">
138 <div id="eapAnonymousIdentityLabel" class="start">
139 $i18n{OncWiFi-EAP-AnonymousIdentity}
140 </div>
141 <paper-input-container no-label-float>
142 <input is="iron-input"
143 value="[[configProperties_.WiFi.EAP.AnonymousIdentity]]"
144 aria-labelledby="eapAnonymousIdentityLabel">
145 </paper-input-container>
146 </div>
147 </template>
148 </template>
149
150 </template>
151 <script src="internet_config.js"></script>
152 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698