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