|
<% new = f.object && f.object.id.blank? -%>
|
|
<%= text_f f, :name, :disabled => !new if controller_name != "hosts" %>
|
|
<%= select_f f, :flavor_ref, compute_resource.flavors, :id, :name, {}, :label => 'Flavor' %>
|
|
<div id='image_selection'><%= select_f f, :image_ref, compute_resource.images, :uuid, :name, {:include_blank =>'Please Select an Image'}, :label => "Image" %></div>
|
|
<%= select_f f, :tenant_id, compute_resource.tenants, :id, :name %>
|
|
|
|
<%= select_f f, :security_groups, compute_resource.security_groups, :name, :name, {}, :label => "Security Group" %>
|
|
<%= selectable_f f, :network, compute_resource.address_pools, { :prompt => "None" }, { :label => "Floating IP network" } %>
|
|
|