diff --git a/client/WEB-INF/classes/resources/messages.properties b/client/WEB-INF/classes/resources/messages.properties index 50256517048..717809deb4f 100644 --- a/client/WEB-INF/classes/resources/messages.properties +++ b/client/WEB-INF/classes/resources/messages.properties @@ -5,6 +5,9 @@ label.rules=Rules label.traffic.label=Traffic label label.vm.state=VM state message.setup.physical.network.during.zone.creation.basic=When adding a basic zone, you can set up one physical network, which corresponds to a NIC on the hypervisor. The network carries several types of traffic.

You may also drag and drop other traffic types onto the physical network. +label.domain.router=Domain router +label.console.proxy=Console proxy +label.secondary.storage.vm=Secondary storage VM #new labels (end) ************************************************************************************************ diff --git a/ui/index.jsp b/ui/index.jsp index de4ce604f11..bc4ad3bed94 100644 --- a/ui/index.jsp +++ b/ui/index.jsp @@ -2921,6 +2921,9 @@ dictionary = { 'label.physical.network': '', 'label.devices': '', 'label.rules': '', -'label.vm.state': '' +'label.vm.state': '', +'label.domain.router' : '', +'label.console.proxy' : '', +'label.secondary.storage.vm' : '' }; diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index 77ee3f16ecf..29be4ff1aba 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -374,7 +374,17 @@ description: { label: 'label.description', validation: { required: true } - }, + }, + systemvmtype: { + label: 'label.system.vm.type', + select: function(args) { + var items = []; + items.push({id: 'domainrouter', description: dictionary['label.domain.router']}); + items.push({id: 'consoleproxy', description: dictionary['label.console.proxy']}); + items.push({id: 'secondarystoragevm', description: dictionary['label.secondary.storage.vm']}); + args.response.success({data: items}); + } + }, storageType: { label: 'label.storage.type', select: function(args) { @@ -461,6 +471,7 @@ var array1 = []; array1.push("&name=" + args.data.name); array1.push("&displaytext=" + todb(args.data.description)); + array1.push("&systemvmtype=" + todb(args.data.systemvmtype)); array1.push("&storageType=" + todb(args.data.storageType)); array1.push("&cpuNumber=" + args.data.cpuNumber); array1.push("&cpuSpeed="+ args.data.cpuSpeed); @@ -601,7 +612,25 @@ displaytext: { label: 'label.description', isEditable: true - }, + }, + systemvmtype: { + label: 'label.system.vm.type', + converter: function(args) { + var text = ''; + switch(args) { + case 'domainrouter': + text = dictionary['label.domain.router']; + break; + case 'consoleproxy': + text = dictionary['label.console.proxy']; + break; + case 'secondarystoragevm': + text = dictionary['label.secondary.storage.vm']; + break; + } + return text; + } + }, storagetype: { label: 'label.storage.type' }, cpunumber: { label: 'label.num.cpu.cores' }, cpuspeed: { @@ -1732,5 +1761,5 @@ return allowedActions; }; - + })(cloudStack, jQuery);