diff --git a/ui/css/cloudstack3.css b/ui/css/cloudstack3.css
index 29148348736..b3f9b069f80 100644
--- a/ui/css/cloudstack3.css
+++ b/ui/css/cloudstack3.css
@@ -5847,14 +5847,14 @@ label.error {
.multi-wizard .ui-tabs li.ui-state-default a {
float: left;
- padding: 15px;
- width: 110px;
text-align: center;
font-size: 11px;
margin-right: 1px;
color: #4E6070;
text-decoration: none;
background: #DEE3E5;
+ padding-left: 0;
+ padding-right: 0;
}
.multi-wizard .ui-tabs li.ui-state-active a {
diff --git a/ui/index.jsp b/ui/index.jsp
index bab00eb2cea..83d5d54987f 100644
--- a/ui/index.jsp
+++ b/ui/index.jsp
@@ -148,7 +148,8 @@
@@ -166,6 +167,10 @@
+
diff --git a/ui/scripts/instanceWizard.js b/ui/scripts/instanceWizard.js
index 2a02ad5b573..99e79be62db 100644
--- a/ui/scripts/instanceWizard.js
+++ b/ui/scripts/instanceWizard.js
@@ -231,14 +231,16 @@
templatesObj = {
featuredtemplates: featuredTemplateObjs,
communitytemplates: communityTemplateObjs,
- mytemplates: myTemplateObjs
- }
+ mytemplates: myTemplateObjs,
+ sharedtemplates: [] // ** Needs implementation **
+ };
} else if (selectedTemplateOrIso == 'select-iso') {
templatesObj = {
featuredisos: featuredIsoObjs,
communityisos: communityIsoObjs,
- myisos: myIsoObjs
- }
+ myisos: myIsoObjs,
+ sharedisos: [] // ** Needs implementation **
+ };
}
args.response.success({
hypervisor: {
diff --git a/ui/scripts/ui-custom/instanceWizard.js b/ui/scripts/ui-custom/instanceWizard.js
index 527dc105474..a4adc18807d 100644
--- a/ui/scripts/ui-custom/instanceWizard.js
+++ b/ui/scripts/ui-custom/instanceWizard.js
@@ -342,7 +342,7 @@
var $templateHypervisor = $step.find('input[type=hidden][wizard-field=hypervisor]');
// Get hypervisor from template
- if (type == 'featuredtemplates' || type == 'communitytemplates' || type == 'mytemplates') {
+ if (type == 'featuredtemplates' || type == 'communitytemplates' || type == 'mytemplates' || type == 'sharedtemplates') {
$selects.each(function() {
var $select = $(this);
var template = $.grep(args.data.templates[type], function(tmpl, v) {
@@ -359,7 +359,7 @@
$templateHypervisor.attr('disabled', 'disabled');
}
- if (type == 'featuredisos' || type == 'communityisos' || type == 'myisos') {
+ if (type == 'featuredisos' || type == 'communityisos' || type == 'myisos' || type == 'sharedisos') {
// Create hypervisor select
$selects.find('input').bind('click', function() {
var $select = $(this).closest('.select');
@@ -368,6 +368,7 @@
$("#instance-wizard-featured-isos .select-container div.selected").removeClass('selected').find('div.hypervisor').remove();
$("#instance-wizard-community-isos .select-container div.selected").removeClass('selected').find('div.hypervisor').remove();
$("#instance-wizard-my-isos .select-container div.selected").removeClass('selected').find('div.hypervisor').remove();
+ $("#instance-wizard-shared-isos .select-container div.selected").removeClass('selected').find('div.hypervisor').remove();
$select.addClass('selected').append(
$('').addClass('hypervisor')
@@ -396,13 +397,17 @@
// Featured ISOs
$(
[
+ // Templates
['featuredtemplates', 'instance-wizard-featured-templates'],
['communitytemplates', 'instance-wizard-community-templates'],
['mytemplates', 'instance-wizard-my-templates'],
+ ['sharedtemplates', 'instance-wizard-shared-templates'],
+ // ISOs
['featuredisos', 'instance-wizard-featured-isos'],
['communityisos', 'instance-wizard-community-isos'],
- ['myisos', 'instance-wizard-my-isos']
+ ['myisos', 'instance-wizard-my-isos'],
+ ['sharedisos', 'instance-wizard-shared-isos'],
//['isos', 'instance-wizard-all-isos']
]
).each(function() {