blob: 426b2f8d1e493993222b80b180f44fa6df876579 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
<link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.html">
<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network_behavior.html">
<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_network_indicator.html">
<dom-module name="network-property-list">
<link rel="import" type="css" href="network_property_list.css">
<template>
<div id="outerDiv" class="layout horizontal">
<div class="layout vertical">
<template is="dom-repeat" items="[[fields]]">
<div class="layout horizontal"
hidden$="[[!showProperty_(propertyDict, editFieldTypes, item)]]">
<span>[[getPropertyLabel_(item)]]</span>
<span class="flex fill"></span>
</div>
</template>
</div>
<div class="layout vertical">
<template is="dom-repeat" items="[[fields]]">
<div class="layout horizontal"
hidden$="[[!showNoEdit_(propertyDict, editFieldTypes, item)]]">
<span>[[getPropertyValue_(propertyDict, item)]]</span>
<cr-policy-network-indicator property="[[propertyDict]]">
</cr-policy-network-indicator>
</div>
<div class="layout horizontal" hidden$=
"[[!showEdit_(propertyDict, editFieldTypes, item, 'String')]]">
<paper-input-container no-label-float>
<input id="[[item]]" is="iron-input"
value="[[getPropertyValue_(propertyDict, item)]]"
on-blur="onValueChange_">
</paper-input-container>
</div>
<!-- TODO(stevenjb): Support non-string types. -->
</template>
</div>
</div>
</template>
<script src="network_property_list.js"></script>
</dom-module>
|