diff --git a/xCAT-UI/js/custom/blade.js b/xCAT-UI/js/custom/blade.js
index 3881cc78c..d6390f850 100644
--- a/xCAT-UI/js/custom/blade.js
+++ b/xCAT-UI/js/custom/blade.js
@@ -592,6 +592,26 @@ function createBladeProvisionExisting(inst) {
// Create provision existing division
var provExisting = $('
');
+ // Create VM fieldset
+ var nodeFS = $('');
+ var nodeLegend = $('');
+ nodeFS.append(nodeLegend);
+
+ var nodeAttr = $('');
+ nodeFS.append($(''));
+ nodeFS.append(nodeAttr);
+
+ // Create image fieldset
+ var imgFS = $('');
+ var imgLegend = $('');
+ imgFS.append(imgLegend);
+
+ var imgAttr = $('');
+ imgFS.append($(''));
+ imgFS.append(imgAttr);
+
+ provExisting.append(nodeFS, imgFS);
+
// Create group input
var group = $('');
var groupLabel = $('');
@@ -628,7 +648,7 @@ function createBladeProvisionExisting(inst) {
var groupInput = $('');
group.append(groupInput);
}
- provExisting.append(group);
+ nodeAttr.append(group);
// Create node input
var node = $('');
@@ -636,7 +656,7 @@ function createBladeProvisionExisting(inst) {
var nodeDatatable = $('Select a group to view its nodes
');
node.append(nodeLabel);
node.append(nodeDatatable);
- provExisting.append(node);
+ nodeAttr.append(node);
// Create boot method drop down
var method = $('');
@@ -651,7 +671,7 @@ function createBladeProvisionExisting(inst) {
);
method.append(methodLabel);
method.append(methodSelect);
- provExisting.append(method);
+ imgAttr.append(method);
// Create operating system input
var os = $('');
@@ -668,7 +688,7 @@ function createBladeProvisionExisting(inst) {
});
os.append(osLabel);
os.append(osInput);
- provExisting.append(os);
+ imgAttr.append(os);
// Create architecture input
var arch = $('');
@@ -685,7 +705,7 @@ function createBladeProvisionExisting(inst) {
});
arch.append(archLabel);
arch.append(archInput);
- provExisting.append(arch);
+ imgAttr.append(arch);
// Create profile input
var profile = $('');
@@ -702,7 +722,7 @@ function createBladeProvisionExisting(inst) {
});
profile.append(profileLabel);
profile.append(profileInput);
- provExisting.append(profile);
+ imgAttr.append(profile);
/**
* Provision existing
diff --git a/xCAT-UI/js/custom/esx.js b/xCAT-UI/js/custom/esx.js
index d31b30b00..f943ddfd4 100644
--- a/xCAT-UI/js/custom/esx.js
+++ b/xCAT-UI/js/custom/esx.js
@@ -163,24 +163,39 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
var provForm = $('');
// Create info bar
- var infoBar = createInfoBar('Provision an VMware virtual machine.');
+ var infoBar = createInfoBar('Provision an KVM virtual machine.');
provForm.append(infoBar);
// Append to provision tab
$('#' + tabId).append(provForm);
+ // Create VM fieldset
var vmFS = $('');
var vmLegend = $('');
vmFS.append(vmLegend);
+ var vmAttr = $('');
+ vmFS.append($(''));
+ vmFS.append(vmAttr);
+
+ // Create hardware fieldset
var hwFS = $('');
var hwLegend = $('');
hwFS.append(hwLegend);
+ var hwAttr = $('');
+ hwFS.append($(''));
+ hwFS.append(hwAttr);
+
+ // Create image fieldset
var imgFS = $('');
var imgLegend = $('');
imgFS.append(imgLegend);
+ var imgAttr = $('');
+ imgFS.append($(''));
+ imgFS.append(imgAttr);
+
provForm.append(vmFS, hwFS, imgFS);
// Create hypervisor input
@@ -189,7 +204,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
host.append(hostLabel);
var hostInput = $('');
host.append(hostInput);
- vmFS.append(host);
+ vmAttr.append(host);
// Create group input
var group = $('');
@@ -216,7 +231,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
var groupInput = $('');
group.append(groupInput);
}
- vmFS.append(group);
+ vmAttr.append(group);
// Create node input
var node = $('');
@@ -224,7 +239,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
var nodeInput = $('');
node.append(nodeLabel);
node.append(nodeInput);
- vmFS.append(node);
+ vmAttr.append(node);
// Create memory input
var memory = $('');
@@ -232,7 +247,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
var memoryInput = $('');
memory.append(memoryLabel);
memory.append(memoryInput);
- hwFS.append(memory);
+ hwAttr.append(memory);
// Create processor dropdown
var cpu = $('');
@@ -249,7 +264,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
);
cpu.append(cpuLabel);
cpu.append(cpuSelect);
- hwFS.append(cpu);
+ hwAttr.append(cpu);
// Create NIC dropdown
var nic = $('');
@@ -257,7 +272,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
var nicInput = $('');
nic.append(nicLabel);
nic.append(nicInput);
- hwFS.append(nic);
+ hwAttr.append(nic);
// Create disk input
var disk = $('');
@@ -268,7 +283,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
''
);
disk.append(diskLabel, diskInput, diskSizeSelect);
- hwFS.append(disk);
+ hwAttr.append(disk);
// Create disk storage input
var storage = $('');
@@ -276,7 +291,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
var storageInput = $('');
storage.append(storageLabel);
storage.append(storageInput);
- hwFS.append(storage);
+ hwAttr.append(storage);
// Create operating system input
var os = $('');
@@ -293,7 +308,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
});
os.append(osLabel);
os.append(osInput);
- imgFS.append(os);
+ imgAttr.append(os);
// Create architecture input
var arch = $('');
@@ -310,7 +325,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
});
arch.append(archLabel);
arch.append(archInput);
- imgFS.append(arch);
+ imgAttr.append(arch);
// Create profile input
var profile = $('');
@@ -327,7 +342,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
});
profile.append(profileLabel);
profile.append(profileInput);
- imgFS.append(profile);
+ imgAttr.append(profile);
// Create boot method dropdown
var method = $('');
@@ -342,7 +357,7 @@ esxPlugin.prototype.loadProvisionPage = function(tabId) {
);
method.append(methodLabel);
method.append(methodSelect);
- imgFS.append(method);
+ imgAttr.append(method);
/**
* Provision existing
diff --git a/xCAT-UI/js/custom/ipmi.js b/xCAT-UI/js/custom/ipmi.js
index a18767e4e..178fdcd07 100644
--- a/xCAT-UI/js/custom/ipmi.js
+++ b/xCAT-UI/js/custom/ipmi.js
@@ -334,6 +334,26 @@ function createIpmiProvisionExisting(inst) {
// Create provision existing division
var provExisting = $('');
+ // Create VM fieldset
+ var nodeFS = $('');
+ var nodeLegend = $('');
+ nodeFS.append(nodeLegend);
+
+ var nodeAttr = $('');
+ nodeFS.append($(''));
+ nodeFS.append(nodeAttr);
+
+ // Create image fieldset
+ var imgFS = $('');
+ var imgLegend = $('');
+ imgFS.append(imgLegend);
+
+ var imgAttr = $('');
+ imgFS.append($(''));
+ imgFS.append(imgAttr);
+
+ provExisting.append(nodeFS, imgFS);
+
// Create group input
var group = $('');
var groupLabel = $('');
@@ -370,7 +390,7 @@ function createIpmiProvisionExisting(inst) {
var groupInput = $('');
group.append(groupInput);
}
- provExisting.append(group);
+ nodeAttr.append(group);
// Create node input
var node = $('');
@@ -378,7 +398,7 @@ function createIpmiProvisionExisting(inst) {
var nodeDatatable = $('Select a group to view its nodes
');
node.append(nodeLabel);
node.append(nodeDatatable);
- provExisting.append(node);
+ nodeAttr.append(node);
// Create boot method drop down
var method = $('');
@@ -393,7 +413,7 @@ function createIpmiProvisionExisting(inst) {
);
method.append(methodLabel);
method.append(methodSelect);
- provExisting.append(method);
+ imgAttr.append(method);
// Create operating system input
var os = $('');
@@ -410,7 +430,7 @@ function createIpmiProvisionExisting(inst) {
});
os.append(osLabel);
os.append(osInput);
- provExisting.append(os);
+ imgAttr.append(os);
// Create architecture input
var arch = $('');
@@ -427,7 +447,7 @@ function createIpmiProvisionExisting(inst) {
});
arch.append(archLabel);
arch.append(archInput);
- provExisting.append(arch);
+ imgAttr.append(arch);
// Create profile input
var profile = $('');
@@ -444,7 +464,7 @@ function createIpmiProvisionExisting(inst) {
});
profile.append(profileLabel);
profile.append(profileInput);
- provExisting.append(profile);
+ imgAttr.append(profile);
/**
* Provision existing
diff --git a/xCAT-UI/js/custom/kvm.js b/xCAT-UI/js/custom/kvm.js
index 399ad2276..bd48a855a 100644
--- a/xCAT-UI/js/custom/kvm.js
+++ b/xCAT-UI/js/custom/kvm.js
@@ -169,18 +169,33 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
// Append to provision tab
$('#' + tabId).append(provForm);
+ // Create VM fieldset
var vmFS = $('');
var vmLegend = $('');
vmFS.append(vmLegend);
+ var vmAttr = $('');
+ vmFS.append($(''));
+ vmFS.append(vmAttr);
+
+ // Create hardware fieldset
var hwFS = $('');
var hwLegend = $('');
hwFS.append(hwLegend);
+ var hwAttr = $('');
+ hwFS.append($(''));
+ hwFS.append(hwAttr);
+
+ // Create image fieldset
var imgFS = $('');
var imgLegend = $('');
imgFS.append(imgLegend);
+ var imgAttr = $('');
+ imgFS.append($(''));
+ imgFS.append(imgAttr);
+
provForm.append(vmFS, hwFS, imgFS);
// Create hypervisor input
@@ -189,7 +204,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
host.append(hostLabel);
var hostInput = $('');
host.append(hostInput);
- vmFS.append(host);
+ vmAttr.append(host);
// Create group input
var group = $('');
@@ -216,7 +231,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
var groupInput = $('');
group.append(groupInput);
}
- vmFS.append(group);
+ vmAttr.append(group);
// Create node input
var node = $('');
@@ -224,7 +239,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
var nodeInput = $('');
node.append(nodeLabel);
node.append(nodeInput);
- vmFS.append(node);
+ vmAttr.append(node);
// Create memory input
var memory = $('');
@@ -232,7 +247,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
var memoryInput = $('');
memory.append(memoryLabel);
memory.append(memoryInput);
- hwFS.append(memory);
+ hwAttr.append(memory);
// Create processor dropdown
var cpu = $('');
@@ -249,7 +264,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
);
cpu.append(cpuLabel);
cpu.append(cpuSelect);
- hwFS.append(cpu);
+ hwAttr.append(cpu);
// Create NIC dropdown
var nic = $('');
@@ -257,7 +272,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
var nicInput = $('');
nic.append(nicLabel);
nic.append(nicInput);
- hwFS.append(nic);
+ hwAttr.append(nic);
// Create disk input
var disk = $('');
@@ -268,7 +283,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
''
);
disk.append(diskLabel, diskInput, diskSizeSelect);
- hwFS.append(disk);
+ hwAttr.append(disk);
// Create disk storage input
var storage = $('');
@@ -276,7 +291,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
var storageInput = $('');
storage.append(storageLabel);
storage.append(storageInput);
- hwFS.append(storage);
+ hwAttr.append(storage);
// Create operating system input
var os = $('');
@@ -293,7 +308,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
});
os.append(osLabel);
os.append(osInput);
- imgFS.append(os);
+ imgAttr.append(os);
// Create architecture input
var arch = $('');
@@ -310,7 +325,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
});
arch.append(archLabel);
arch.append(archInput);
- imgFS.append(arch);
+ imgAttr.append(arch);
// Create profile input
var profile = $('');
@@ -327,7 +342,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
});
profile.append(profileLabel);
profile.append(profileInput);
- imgFS.append(profile);
+ imgAttr.append(profile);
// Create boot method dropdown
var method = $('');
@@ -342,7 +357,7 @@ kvmPlugin.prototype.loadProvisionPage = function(tabId) {
);
method.append(methodLabel);
method.append(methodSelect);
- imgFS.append(method);
+ imgAttr.append(method);
/**
* Provision existing
diff --git a/xCAT-UI/js/custom/zvm.js b/xCAT-UI/js/custom/zvm.js
index 2ed46568f..5befb9c14 100644
--- a/xCAT-UI/js/custom/zvm.js
+++ b/xCAT-UI/js/custom/zvm.js
@@ -504,20 +504,30 @@ zvmPlugin.prototype.loadClonePage = function(node) {
cloneForm.append(statBar);
cloneForm.append(infoBar);
+ // Create VM fieldset
var vmFS = $('');
var vmLegend = $('');
vmFS.append(vmLegend);
cloneForm.append(vmFS);
+ var vmAttr = $('');
+ vmFS.append($(''));
+ vmFS.append(vmAttr);
+
+ // Create hardware fieldset
var hwFS = $('');
var hwLegend = $('');
hwFS.append(hwLegend);
cloneForm.append(hwFS);
- vmFS.append('');
- vmFS.append('');
- vmFS.append('');
- vmFS.append('');
+ var hwAttr = $('');
+ hwFS.append($(''));
+ hwFS.append(hwAttr);
+
+ vmAttr.append('');
+ vmAttr.append('');
+ vmAttr.append('');
+ vmAttr.append('');
// Create group input
var group = $('');
@@ -534,7 +544,7 @@ zvmPlugin.prototype.loadClonePage = function(node) {
});
group.append(groupLabel);
group.append(groupInput);
- vmFS.append(group);
+ vmAttr.append(group);
// Get list of disk pools
var temp = hcp.split('.');
@@ -548,9 +558,9 @@ zvmPlugin.prototype.loadClonePage = function(node) {
});
poolDiv.append(poolLabel);
poolDiv.append(poolInput);
- hwFS.append(poolDiv);
+ hwAttr.append(poolDiv);
- hwFS.append('');
+ hwAttr.append('');
// Generate tooltips
cloneForm.find('div input[title]').tooltip({
diff --git a/xCAT-UI/js/custom/zvmUtils.js b/xCAT-UI/js/custom/zvmUtils.js
index 86b5cb26c..eeb54d887 100644
--- a/xCAT-UI/js/custom/zvmUtils.js
+++ b/xCAT-UI/js/custom/zvmUtils.js
@@ -1160,7 +1160,7 @@ function openAddProcDialog(node) {
// If inputs are not complete, show warning message
if (!node || !address || !type) {
- var warn = createWarnBar('You are missing inputs.');
+ var warn = createWarnBar('Please provide a value for each missing field.');
warn.prependTo($(this));
} else {
// Add processor
@@ -1269,7 +1269,7 @@ function openAddDiskDialog(node, hcp) {
// If inputs are not complete, show warning message
if (!node || !type || !address || !size || !pool || !mode) {
- var warn = createWarnBar('You are missing inputs.');
+ var warn = createWarnBar('Please provide a value for each missing field.');
warn.prependTo($(this));
} else {
// Add disk
@@ -1500,7 +1500,7 @@ function openAddNicDialog(node, hcp) {
// If inputs are not complete, show warning message
if (!node || !nicType || !networkType || !address) {
- errMsg = 'You are missing inputs.
';
+ errMsg = 'Please provide a value for each missing field.
';
ready = false;
}
@@ -1993,10 +1993,18 @@ function createZProvisionExisting(inst) {
vmFS.append(vmLegend);
provExisting.append(vmFS);
+ var vmAttr = $('');
+ vmFS.append($(''));
+ vmFS.append(vmAttr);
+
var osFS = $('');
var osLegend = $('');
osFS.append(osLegend);
provExisting.append(osFS);
+
+ var osAttr = $('');
+ osFS.append($(''));
+ osFS.append(osAttr);
// Create group input
var group = $('');
@@ -2033,16 +2041,16 @@ function createZProvisionExisting(inst) {
var groupInput = $('');
group.append(groupInput);
}
- vmFS.append(group);
+ vmAttr.append(group);
// Create node input
var node = $('');
var nodeLabel = $('');
- var nodeDatatable = $('Select a group to view its nodes
');
+ var nodeDatatable = $('Select a group to view its nodes
');
node.append(nodeLabel);
node.append(nodeDatatable);
- vmFS.append(node);
-
+ vmAttr.append(node);
+
// Create operating system image input
var os = $('');
var osLabel = $('');
@@ -2059,7 +2067,7 @@ function createZProvisionExisting(inst) {
});
os.append(osLabel);
os.append(osInput);
- osFS.append(os);
+ osAttr.append(os);
// Create boot method drop down
var bootMethod = $('');
@@ -2073,7 +2081,7 @@ function createZProvisionExisting(inst) {
);
bootMethod.append(methoddLabel);
bootMethod.append(methodSelect);
- osFS.append(bootMethod);
+ osAttr.append(bootMethod);
// Generate tooltips
provExisting.find('div input[title]').tooltip({
@@ -2184,22 +2192,37 @@ function createZProvisionExisting(inst) {
function createZProvisionNew(inst) {
// Create provision new node division
var provNew = $('');
-
+
+ // Create VM fieldset
var vmFS = $('');
var vmLegend = $('');
vmFS.append(vmLegend);
provNew.append(vmFS);
+ var vmAttr = $('');
+ vmFS.append($(''));
+ vmFS.append(vmAttr);
+
+ // Create hardware fieldset
var hwFS = $('');
var hwLegend = $('');
hwFS.append(hwLegend);
provNew.append(hwFS);
+ var hwAttr = $('');
+ hwFS.append($(''));
+ hwFS.append(hwAttr);
+
+ // Create OS fieldset
var osFS = $('');
var osLegend = $('');
osFS.append(osLegend);
provNew.append(osFS);
+ var osAttr = $('');
+ osFS.append($(''));
+ osFS.append(osAttr);
+
// Create group input
var group = $('');
var groupLabel = $('');
@@ -2216,7 +2239,7 @@ function createZProvisionNew(inst) {
});
group.append(groupLabel);
group.append(groupInput);
- vmFS.append(group);
+ vmAttr.append(group);
// Create node input
var nodeName = $('');
@@ -2224,11 +2247,11 @@ function createZProvisionNew(inst) {
var nodeInput = $('');
nodeName.append(nodeLabel);
nodeName.append(nodeInput);
- vmFS.append(nodeName);
+ vmAttr.append(nodeName);
// Create user ID input
var userId = $('');
- vmFS.append(userId);
+ vmAttr.append(userId);
// Create hardware control point input
var hcpDiv = $('');
@@ -2256,7 +2279,7 @@ function createZProvisionNew(inst) {
});
hcpDiv.append(hcpLabel);
hcpDiv.append(hcpInput);
- vmFS.append(hcpDiv);
+ vmAttr.append(hcpDiv);
// Create operating system image input
var os = $('');
@@ -2274,7 +2297,7 @@ function createZProvisionNew(inst) {
});
os.append(osLabel);
os.append(osInput);
- osFS.append(os);
+ osAttr.append(os);
// Create user entry input
var defaultChkbox = $('').click(function() {
@@ -2339,7 +2362,7 @@ function createZProvisionNew(inst) {
});
var userEntry = $('');
userEntry.append($('').append(defaultChkbox, 'Use default'));
- hwFS.append(userEntry);
+ hwAttr.append(userEntry);
// Create disk table
var diskDiv = $('');
@@ -2451,7 +2474,7 @@ function createZProvisionNew(inst) {
diskDiv.append(diskLabel);
diskDiv.append(diskTable);
- hwFS.append(diskDiv);
+ hwAttr.append(diskDiv);
// Generate tooltips
provNew.find('div input[title]').tooltip({
@@ -2510,7 +2533,7 @@ function createZProvisionNew(inst) {
// Show error message for missing inputs
if (!ready) {
- errMsg = errMsg + 'You are missing inputs.
';
+ errMsg = errMsg + 'Please provide a value for each missing field.
';
}
// Check if user entry contains user ID
diff --git a/xCAT-UI/js/help/help.js b/xCAT-UI/js/help/help.js
index c04f58e51..9a06f8a1d 100644
--- a/xCAT-UI/js/help/help.js
+++ b/xCAT-UI/js/help/help.js
@@ -9,7 +9,8 @@ function loadHelpPage(){
helpForm.append(
'' +
'