<%= fields_for item do |f| %>
  <%= select_f f, :medium_id, os_media, :id, :to_label,
    {:include_blank => os_media.size > 1, :selected => item.medium_id},
    {:id => type + "_medium_id", :name => type + "[medium_id]", :label => _("Media"), :disabled => os_media.empty?,
     :help_inline => :indicator, :onchange => 'medium_selected(this);', :'data-url' =>  method_path('medium_selected'),
     :'data-type' => controller_name }
  %>
  <%= select_f f, :ptable_id, os_ptable, :id, :to_label,
    {:include_blank => os_ptable.size > 1, :selected => item.ptable_id},
    {:id => type + "_ptable_id", :name => type + "[ptable_id]", :label => _("Partition table"), :disabled => os_ptable.empty?}
  %>

  <% if @operatingsystem and @operatingsystem.supports_image %>
    <%= render "common/os_selection/image_details", {:item => item} %>
  <% end %>
<% end %>
