diff --git a/ui/scripts/docs.js b/ui/scripts/docs.js index 65233c10dda..48db443f7a8 100755 --- a/ui/scripts/docs.js +++ b/ui/scripts/docs.js @@ -16,6 +16,22 @@ // under the License. cloudStack.docs = { + //Dedicate Resource + + helpDedicateResource:{ + + desc:'Check this box to dedicate the resources to specific domain/account', + externalLink:'' + + }, + + helpAccountForDedication:{ + + desc:'Please enter an account name which belongs to the above selected domain in order to dedicate this resource to this account', + externalLink:'' + + }, + //Delete/archive events helpEventsDeleteType:{ diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 8b9a81fe7c7..b90a11d2fe4 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -8507,7 +8507,54 @@ label: 'label.end.reserved.system.IP', docID: 'helpPodEndIP', validation: { required: false } + }, + + isDedicated:{ + label:'Dedicate', + isBoolean:true, + isChecked:false, + docID:'helpDedicateResource' + + + }, + + domainId:{ + label:'Domain', + isHidden:true, + validation:{required:true}, + dependsOn:'isDedicated', + select:function(args){ + $.ajax({ + url:createURL("listDomains&listAll=true"), + dataType:"json", + async:false, + success: function(json) { + var domainObjs= json.listdomainsresponse.domain; + var items=[]; + + $(domainObjs).each(function() { + items.push({id:this.id ,description:this.name }); + }); + + args.response.success({ + data: items + }); + } + + + }); + } + }, + + accountId:{ + label:'Account', + isHidden:true, + dependsOn:'isDedicated', + docID:'helpAccountForDedication', + validation:{required:false} + } + } }, @@ -9007,8 +9054,55 @@ }, - //hypervisor==VMWare begins here + + isDedicated:{ + label:'Dedicate', + isBoolean:true, + isChecked:false, + docID:'helpDedicateResource' + + }, + + domainId:{ + label:'Domain', + isHidden:true, + validation:{required:true}, + dependsOn:'isDedicated', + select:function(args){ + $.ajax({ + url:createURL("listDomains&listAll=true"), + dataType:"json", + async:false, + success: function(json) { + var domainObjs= json.listdomainsresponse.domain; + var items=[]; + + $(domainObjs).each(function() { + items.push({id:this.id ,description:this.name }); + }); + + args.response.success({ + data: items + }); + } + + + }); + } + }, + + accountId:{ + label:'Account', + isHidden:true, + dependsOn:'isDedicated', + docID:'helpAccountForDedication', + validation:{required:false} + + }, + + //hypervisor==VMWare begins here + vCenterHost: { label: 'label.vcenter.host', docID: 'helpClustervCenterHost', @@ -9996,7 +10090,55 @@ validation: { required: true }, isHidden: true, isPassword: true + }, + + isDedicated:{ + label:'Dedicate', + isBoolean:true, + isChecked:false, + docID:'helpDedicateResource' + + + }, + + domainId:{ + label:'Domain', + isHidden:true, + validation:{required:true}, + dependsOn:'isDedicated', + select:function(args){ + $.ajax({ + url:createURL("listDomains&listAll=true"), + dataType:"json", + async:false, + success: function(json) { + var domainObjs= json.listdomainsresponse.domain; + var items=[]; + + $(domainObjs).each(function() { + items.push({id:this.id ,description:this.name }); + }); + + args.response.success({ + data: items + }); + } + + + }); + + } + }, + + accountId:{ + label:'Account', + isHidden:true, + dependsOn:'isDedicated', + docID:'helpAccountForDedication', + validation:{required:false} + }, + //input_group="general" ends here //input_group="VMWare" starts here