/**
* Load netboot page
*
* @param tgtNodes
* Targets to run rnetboot against
* @return Nothing
*/
function loadNetbootPage(tgtNodes) {
// Get nodes tab
var tab = getNodesTab();
// Generate new tab ID
var inst = 0;
var newTabId = 'netbootTab' + inst;
while ($('#' + newTabId).length) {
// If one already exists, generate another one
inst = inst + 1;
newTabId = 'netbootTab' + inst;
}
// Create netboot form
var netbootForm = $('
');
// Create status bar
var barId = 'netbootStatusBar' + inst;
var statusBar = createStatusBar(barId);
statusBar.hide();
netbootForm.append(statusBar);
// Create loader
var loader = createLoader('netbootLoader');
statusBar.append(loader);
// Create info bar
var infoBar = createInfoBar('Cause the range of nodes to boot to network');
netbootForm.append(infoBar);
// Create target node or group input
var target = $('');
netbootForm.append(target);
// Create options
var optsDIV = $('');
var optsLabel = $('');
var optsList = $('
');
var opt = $('');
optsList.append(opt);
optsDIV.append(optsLabel);
optsDIV.append(optsList);
netbootForm.append(optsDIV);
// Create boot order checkbox
var bootOrderChkBox = $('');
opt.append(bootOrderChkBox);
opt.append('Set the boot device order');
// Create boot order input
var bootOrder = $('');
bootOrder.hide();
optsList.append(bootOrder);
// Create force reboot checkbox
optsList.append('
Force reboot
');
// Create force shutdown checkbox
optsList.append('