Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / resources / settings / internet_page / network_apnlist.html
blobd6844f3832d7d2eb1aa308ba8b57dd4e1018b711
1 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel="import" href="chrome://resources/cr_elements/v1_0/cr_button/cr_button.html">
3 <link rel="import" href="chrome://resources/cr_elements/v1_0/network/cr_onc_types.html">
4 <link rel="import" href="network_property_list.html">
6 <dom-module id="network-apnlist">
7 <link rel="import" type="css" href="network_apnlist.css">
8 <template>
9 <div id="outerDiv" class="layout vertical">
10 <div id="selectDiv" class="layout horizontal center">
11 <span>Access Point:</span>
12 <!-- TODO(stevenjb): Use cr-dropdown-menu once available. -->
13 <select id="selectApn" value="{{selectedApn::change}}"
14 on-change="onSelectApnChange_">
15 <template is="dom-repeat"
16 items="[[apnSelectList]]" on-dom-change="onSelectApnUpdated_">
17 <option value="[[item.AccessPointName]]">[[apnDesc_(item)]]</option>
18 </template>
19 </select>
20 </div>
21 <div id="otherDiv" class="layout vertical"
22 hidden$="[[!isOtherSelected_(networkState, selectedApn)]]">
23 <network-property-list
24 fields="[[otherApnFields_]]" network-state="[[otherApn]]"
25 edit-field-types="[[otherApnEditTypes_]]"
26 on-property-change="onOtherApnChange_">
27 </network-property-list>
28 <cr-button on-click="onSaveOther_">Save</cr-button>
29 </div>
30 </div>
31 </template>
32 <script src="network_apnlist.js"></script>
33 </dom-module>