|
56 | 56 |
|
57 | 57 | // Admin dashboard |
58 | 58 | admin: { |
| 59 | + zoneDetailView: { |
| 60 | + isMaximized: true, |
| 61 | + tabs: { |
| 62 | + details: { |
| 63 | + title: 'Details', |
| 64 | + fields: [ |
| 65 | + { |
| 66 | + name: { label: 'Zone', isEditable: true } |
| 67 | + }, |
| 68 | + { |
| 69 | + id: { label: 'ID' }, |
| 70 | + allocationstate: { label: 'Allocation State' }, |
| 71 | + dns1: { label: 'DNS 1', isEditable: true }, |
| 72 | + dns2: { label: 'DNS 2', isEditable: true }, |
| 73 | + internaldns1: { label: 'Internal DNS 1', isEditable: true }, |
| 74 | + internaldns2: { label: 'Internal DNS 2', isEditable: true }, |
| 75 | + networktype: { label: 'Network Type' }, |
| 76 | + securitygroupsenabled: { |
| 77 | + label: 'Security Groups Enabled', |
| 78 | + converter:cloudStack.converters.toBooleanText |
| 79 | + }, |
| 80 | + domain: { |
| 81 | + label: 'Network domain', |
| 82 | + isEditable: true |
| 83 | + } |
| 84 | + } |
| 85 | + ], |
| 86 | + dataProvider: function(args) { |
| 87 | + $.ajax({ |
| 88 | + url: createURL('listZones'), |
| 89 | + data: { |
| 90 | + id: args.context.physicalResources[0].id |
| 91 | + }, |
| 92 | + success: function(json) { |
| 93 | + args.response.success({ data: json.listzonesresponse.zone[0] }); |
| 94 | + } |
| 95 | + }); |
| 96 | + } |
| 97 | + } |
| 98 | + } |
| 99 | + }, |
| 100 | + |
59 | 101 | dataProvider: function(args) { |
60 | 102 | var dataFns = { |
61 | 103 | zones: function(data) { |
|
232 | 274 | complete($.extend(data, { |
233 | 275 | zoneCapacities: $.map(zoneCapacities.sort(sortFn), function(capacity) { |
234 | 276 | return { |
| 277 | + zoneID: capacity.zoneid, |
235 | 278 | zoneName: capacity.zoneName, |
236 | 279 | type: cloudStack.converters.toAlertType(capacity.type), |
237 | 280 | percent: parseInt(capacity.percentused), |
|
0 commit comments