Cluster/Pod/Host Explicit Dedication front end UI

This commit is contained in:
Pranav Saxena 2013-05-06 10:31:13 +05:30
parent b33b316755
commit 15e2f025bc
2 changed files with 160 additions and 1 deletions

View File

@ -16,6 +16,23 @@
// 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:{

View File

@ -7982,7 +7982,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}
}
}
},
@ -8480,8 +8527,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',
@ -9469,7 +9563,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