Lines 33-38
define([
|
Link Here
|
---|
|
33 |
"dojo/_base/lang", |
33 |
"dojo/_base/lang", |
34 |
"dojo/_base/array", |
34 |
"dojo/_base/array", |
35 |
"dojo/aspect", |
35 |
"dojo/aspect", |
|
|
36 |
"dojox/html/entities", |
36 |
"umc/tools", |
37 |
"umc/tools", |
37 |
"umc/widgets/Page", |
38 |
"umc/widgets/Page", |
38 |
"umc/widgets/StandbyMixin", |
39 |
"umc/widgets/StandbyMixin", |
Lines 44-50
define([
|
Link Here
|
---|
|
44 |
"umc/modules/setup/Interfaces", |
45 |
"umc/modules/setup/Interfaces", |
45 |
"umc/i18n!umc/modules/setup", |
46 |
"umc/i18n!umc/modules/setup", |
46 |
"umc/modules/setup/InterfaceWizard" |
47 |
"umc/modules/setup/InterfaceWizard" |
47 |
], function(declare, lang, array, aspect, tools, Page, StandbyMixin, ComboBox, TextBox, MultiInput, Form, InterfaceGrid, Interfaces, _) { |
48 |
], function(declare, lang, array, aspect, entities, tools, Page, StandbyMixin, ComboBox, TextBox, MultiInput, Form, InterfaceGrid, Interfaces, _) { |
48 |
return declare("umc.modules.setup.NetworkPage", [ Page, StandbyMixin ], { |
49 |
return declare("umc.modules.setup.NetworkPage", [ Page, StandbyMixin ], { |
49 |
// summary: |
50 |
// summary: |
50 |
// This class renderes a detail page containing subtabs and form elements |
51 |
// This class renderes a detail page containing subtabs and form elements |
Lines 297-302
define([
|
Link Here
|
---|
|
297 |
}, { |
298 |
}, { |
298 |
variables: ['interfaces'], |
299 |
variables: ['interfaces'], |
299 |
description: _('Network interfaces'), |
300 |
description: _('Network interfaces'), |
|
|
301 |
values_html_escaped: true, |
300 |
values: this._getInterfaceSummary(vals.interfaces) |
302 |
values: this._getInterfaceSummary(vals.interfaces) |
301 |
}, { |
303 |
}, { |
302 |
variables: ['interfaces/primary'], |
304 |
variables: ['interfaces/primary'], |
Lines 337-343
define([
|
Link Here
|
---|
|
337 |
summary += '<li>' + _('Created:') + '<ul>'; |
339 |
summary += '<li>' + _('Created:') + '<ul>'; |
338 |
array.forEach(created, function(iface) { |
340 |
array.forEach(created, function(iface) { |
339 |
summary += '<li>'; |
341 |
summary += '<li>'; |
340 |
summary += iface.name + ' (' + iface.label + '): '; |
342 |
summary += entities.encode(iface.name + ' (' + iface.label + '): '); |
341 |
summary += iface.getSummary(); |
343 |
summary += iface.getSummary(); |
342 |
summary += '</li>'; |
344 |
summary += '</li>'; |
343 |
}); |
345 |
}); |
Lines 347-353
define([
|
Link Here
|
---|
|
347 |
summary += '<li>' + _('Modified:') + '<ul>'; |
349 |
summary += '<li>' + _('Modified:') + '<ul>'; |
348 |
array.forEach(modified, function(iface) { |
350 |
array.forEach(modified, function(iface) { |
349 |
summary += '<li>'; |
351 |
summary += '<li>'; |
350 |
summary += iface.name + ' (' + iface.label + '): '; |
352 |
summary += entities.encode(iface.name + ' (' + iface.label + '): '); |
351 |
summary += iface.getSummary(); |
353 |
summary += iface.getSummary(); |
352 |
summary += '</li>'; |
354 |
summary += '</li>'; |
353 |
}); |
355 |
}); |
Lines 356-364
define([
|
Link Here
|
---|
|
356 |
if (removed.length) { |
358 |
if (removed.length) { |
357 |
summary += '<li>' + _('Removed:') + '<ul>'; |
359 |
summary += '<li>' + _('Removed:') + '<ul>'; |
358 |
summary += '<li>'; |
360 |
summary += '<li>'; |
359 |
summary += array.map(removed, function(iface) { |
361 |
summary += entities.encode(array.map(removed, function(iface) { |
360 |
return iface.name + ' (' + iface.label + ')'; |
362 |
return iface.name + ' (' + iface.label + ')'; |
361 |
}).join(', '); |
363 |
}).join(', ')); |
362 |
summary += '</li></ul>'; |
364 |
summary += '</li></ul>'; |
363 |
} |
365 |
} |
364 |
summary += '</li>'; |
366 |
summary += '</li>'; |