<%= text_f f, :name, :label => _('Name'), :disabled => !new_host if show_vm_name? %>
<%= select_f f, :flavor_ref, compute_resource.flavors, :id, :name, {}, :label => _('Flavor') %>
<%
   arch ||= nil ; os ||= nil
   images = possible_images(compute_resource, arch, os)
%>
<div id='image_selection'>
  <%= select_f f, :image_ref, images, :uuid, :name,
               { :include_blank => (images.empty? || images.size == 1) ? false : _('Please select an image') },
               { :disabled => images.empty?, :label => _("Image") } %>
</div>
<%= select_f f, :tenant_id, compute_resource.tenants, :id, :name, {}, :label => _('Tenant') %>

<%= select_f f, :security_groups, compute_resource.security_groups, :name, :name, {}, :label => _("Security group")  %>
<%= select_f f, :nics, compute_resource.internal_networks, :id, :name,
             {}, { :label => _('Internal network'), :multiple => true } %>
<%= selectable_f f, :network, compute_resource.address_pools, { :prompt => "None" }, { :label => _("Floating IP network") } %>
<%= checkbox_f f, :boot_from_volume, {:label => _("Boot from volume"), :help_inline => _("Create new boot volume from image")}, "true", "false" %>
<%= text_f f, :size_gb, { :label => _("New boot volume size (GB)"), :help_inline => _("Defaults to image size if left blank") } %>
