Project

General

Profile

« Previous | Next » 

Revision d4327e6e

Added by Ohad Levy almost 12 years ago

  • ID d4327e6e0c022e867ce0f3958b106acf6b946055

ensures that compute resources are shown in the host form only if provisioning is enabled

View differences:

app/views/hosts/_form.html.erb
<%= select_f f, :compute_resource_id, libvirt + ComputeResource.my_compute_resources, :id, :to_label,
{ :include_blank => 'Bare Metal' },
{:label => "Deploy on", :disabled => !@host.new_record?, :'data-url' => compute_resource_selected_hosts_path ,
:onchange => 'computeResourceSelected(this);'} if @host.new_record? || @host.compute_resource_id %>
:onchange => 'computeResourceSelected(this);'} if SETTINGS[:unattended] && @host.new_record? || @host.compute_resource_id %>
<%= select_f f, :hostgroup_id, accessible_hostgroups, :id, :to_label,
{ :include_blank => true},
{ :onchange => 'hostgroup_changed(this);' , :'data-host-id' => @host.id,

Also available in: Unified diff