diff --git a/src/sunstone/public/js/plugins/templates-tab.js b/src/sunstone/public/js/plugins/templates-tab.js index beb073f0e7..4603ecc0df 100644 --- a/src/sunstone/public/js/plugins/templates-tab.js +++ b/src/sunstone/public/js/plugins/templates-tab.js @@ -3475,10 +3475,10 @@ function setupCreateTemplateDialog(){ '
'+ '
'+ '
'+ - ''+ + ''+ '
'+ '
'+ - ''+ + ''+ '
'+ '
'+ '
'+tr("Boolean expression that rules out provisioning hosts from list of machines suitable to run this VM")+'.
'+ @@ -3509,10 +3509,10 @@ function setupCreateTemplateDialog(){ '
'+ '
'+ '
'+ - ''+ + ''+ '
'+ '
'+ - ''+ + ''+ '
'+ '
'+ '
'+tr("This field sets which attribute will be used to sort the suitable hosts for this VM")+'.
'+ @@ -3703,7 +3703,7 @@ function setupCreateTemplateDialog(){ }); $("input[name='rank_select']").change(function(){ - $("#RANK", dialog).val(this.value); + $("#SCHED_RANK", dialog).val(this.value); }); var generate_requirements = function() { @@ -3717,7 +3717,7 @@ function setupCreateTemplateDialog(){ req_string.push('CLUSTER_ID=\\"'+key+'\\"'); }); - $('#REQUIREMENTS', dialog).val(req_string.join(" | ")); + $('#SCHED_REQUIREMENTS', dialog).val(req_string.join(" | ")); }; } @@ -4681,7 +4681,7 @@ function fillTemplatePopUp(request, response){ // REQUIREMENTS & RANK // - var req = template.REQUIREMENTS; + var req = template.SCHED_REQUIREMENTS; var req_section = $('li#schedulingTab', $create_template_dialog); if (req) { @@ -4764,12 +4764,12 @@ function fillTemplatePopUp(request, response){ }); } - $('input#REQUIREMENTS', req_section).val(req); + $('input#SCHED_REQUIREMENTS', req_section).val(req); - delete template.REQUIREMENTS; + delete template.SCHED_REQUIREMENTS; } - var rank = template.RANK; + var rank = template.SCHED_RANK; if (rank) { var striping_regexp = /-RUNNING_VMS/; @@ -4786,9 +4786,9 @@ function fillTemplatePopUp(request, response){ $('input#loadawareRadio', req_section).click() } - $('input#RANK', req_section).val(rank); + $('input#SCHED_RANK', req_section).val(rank); - delete template.RANK; + delete template.SCHED_RANK; } //