Disable Savanna & Murano for RHOS in wizard
Change-Id: Id595541efcc4bd763f549d86622345fe4584c4a7
This commit is contained in:
parent
62cf71f3f4
commit
951a982347
@ -452,6 +452,7 @@ function(require, utils, models, simpleMessageTemplate, createClusterWizardTempl
|
||||
|
||||
clusterWizardPanes.ClusterAdditionalServicesPane = views.WizardPane.extend({
|
||||
title: 'Additional Services',
|
||||
releaseDependent: true,
|
||||
template: _.template(clusterAdditionalServicesPaneTemplate),
|
||||
beforeSettingsSaving: function(settings) {
|
||||
try {
|
||||
@ -465,6 +466,15 @@ function(require, utils, models, simpleMessageTemplate, createClusterWizardTempl
|
||||
return (new $.Deferred()).reject();
|
||||
}
|
||||
return (new $.Deferred()).resolve();
|
||||
},
|
||||
render: function() {
|
||||
var release = this.wizard.findPane(clusterWizardPanes.ClusterNameAndReleasePane).release;
|
||||
var disabled = !release || release.get('operating_system') == 'RHEL'; // no Savanna & Murano for RHOS for now
|
||||
this.$el.html(this.template({disabled: disabled, release: release}));
|
||||
if (disabled) {
|
||||
this.$('input[type=checkbox]').prop('disabled', true);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -1,29 +1,32 @@
|
||||
<form class="form-horizontal" style="margin:0" onsubmit="return false">
|
||||
<fieldset>
|
||||
<div class="control-group">
|
||||
<% var services = [
|
||||
{
|
||||
name: 'savanna',
|
||||
label: 'Install Savanna',
|
||||
description: 'Savanna enables on demand provisioning of Hadoop clusters to be deployed on OpenStack utilizing a variety of vendor distributions.'
|
||||
},{
|
||||
name: 'murano',
|
||||
label: 'Install Murano',
|
||||
description: 'Murano enables windows based datacenter services like Active Directory, IIS, Microsoft SQL and ASP.NET to be deployed on OpenStack.'
|
||||
}
|
||||
] %>
|
||||
<% _.each(services, function(service) { %>
|
||||
<label class="parameter-box clearfix">
|
||||
<div class="parameter-control">
|
||||
<div class="custom-tumbler">
|
||||
<input type="checkbox" name="<%= service.name %>" />
|
||||
<!-- [if !IE |(gte IE 9)]> --><span> </span><!-- <![endif] -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="parameter-name"><%= service.label %></div>
|
||||
</label>
|
||||
<div class="modal-parameter-description"><%= service.description %></div>
|
||||
<% }) %>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<% if (disabled && release) { %>
|
||||
<div class="alert" style="margin-bottom: 10px">Additional services are not available in <%- release.get('name') %></div>
|
||||
<% } %>
|
||||
<form class="form-horizontal" style="margin:0" onsubmit="return false">
|
||||
<fieldset>
|
||||
<div class="control-group">
|
||||
<% var services = [
|
||||
{
|
||||
name: 'savanna',
|
||||
label: 'Install Savanna',
|
||||
description: 'Savanna enables on demand provisioning of Hadoop clusters to be deployed on OpenStack utilizing a variety of vendor distributions.'
|
||||
},{
|
||||
name: 'murano',
|
||||
label: 'Install Murano',
|
||||
description: 'Murano enables windows based datacenter services like Active Directory, IIS, Microsoft SQL and ASP.NET to be deployed on OpenStack.'
|
||||
}
|
||||
] %>
|
||||
<% _.each(services, function(service) { %>
|
||||
<label class="parameter-box clearfix">
|
||||
<div class="parameter-control">
|
||||
<div class="custom-tumbler">
|
||||
<input type="checkbox" name="<%= service.name %>" />
|
||||
<!-- [if !IE |(gte IE 9)]> --><span> </span><!-- <![endif] -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="parameter-name"><%= service.label %></div>
|
||||
</label>
|
||||
<div class="modal-parameter-description"><%= service.description %></div>
|
||||
<% }) %>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user