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">
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>
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>
32 <script src=
"network_apnlist.js"></script>