OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
-container.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
-container.html"> |
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap
er-dropdown-menu-light.html"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/pap
er-dropdown-menu-light.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis
tbox.html"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-lis
tbox.html"> |
5 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm
l"> | 5 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm
l"> |
6 <link rel="import" href="internet_shared_css.html"> | 6 <link rel="import" href="internet_shared_css.html"> |
7 | 7 |
8 <dom-module id="network-nameservers"> | 8 <dom-module id="network-nameservers"> |
9 <template> | 9 <template> |
10 <style include="internet-shared"> | 10 <style include="internet-shared"> |
11 </style> | 11 </style> |
12 <div class="settings-box"> | 12 <div class="settings-box first"> |
13 <div class="start">$i18n{networkSectionNameservers}</div> | 13 <div class="start">$i18n{networkSectionNameservers}</div> |
14 <paper-dropdown-menu-light vertical-align="auto" no-label-float> | 14 <paper-dropdown-menu-light vertical-align="auto" no-label-float> |
15 <paper-listbox class="dropdown-content" on-iron-activate="onTypeChange_" | 15 <paper-listbox class="dropdown-content" on-iron-activate="onTypeChange_" |
16 selected="[[nameserversType_]]" attr-for-selected="value"> | 16 selected="[[nameserversType_]]" attr-for-selected="value"> |
17 <template is="dom-repeat" items="[[nameserverTypeNames_]]"> | 17 <template is="dom-repeat" items="[[nameserverTypeNames_]]"> |
18 <button class="dropdown-item" role="option" value="[[item]]"> | 18 <button class="dropdown-item" role="option" value="[[item]]"> |
19 [[nameserverTypeDesc_(item)]] | 19 [[nameserverTypeDesc_(item)]] |
20 </button> | 20 </button> |
21 </template> | 21 </template> |
22 </paper-listbox> | 22 </paper-listbox> |
23 </paper-dropdown-menu-light> | 23 </paper-dropdown-menu-light> |
24 </div> | 24 </div> |
25 | 25 |
26 <div class="settings-box continuation single-column indented" | 26 <div class="settings-box continuation single-column" |
27 hidden$="[[!nameservers_.length]]"> | 27 hidden$="[[!nameservers_.length]]"> |
28 <template is="dom-repeat" items="[[nameservers_]]"> | 28 <template is="dom-repeat" items="[[nameservers_]]"> |
29 <paper-input-container no-label-float> | 29 <paper-input-container no-label-float> |
30 <input id="nameserver[[index]]" is="iron-input" value="[[item]]" | 30 <input id="nameserver[[index]]" is="iron-input" value="[[item]]" |
31 disabled="[[!canEdit_(editable, nameserversType_)]]" | 31 disabled="[[!canEdit_(editable, nameserversType_)]]" |
32 on-blur="onValueChange_"> | 32 on-blur="onValueChange_"> |
33 </paper-input-container> | 33 </paper-input-container> |
34 </template> | 34 </template> |
35 </div> | 35 </div> |
36 </template> | 36 </template> |
37 <script src="network_nameservers.js"></script> | 37 <script src="network_nameservers.js"></script> |
38 </dom-module> | 38 </dom-module> |
OLD | NEW |