<%= semantic_form_for([:admin, @promo], :html => {:multipart => true}, :url => @promo.new_record? ? admin_latests_path : "/admin/latests/#{@promo.id}") do |f| %>
  <%= f.inputs :name => "Recording or Session", :for => :latest do |latest_form| %>
    <%= f.input(:latest_id, :label => "Unique ID (Recording or Session)", :input_html => {:maxlength => 128}) %>
    <% #= latest_form.input :id, :as => :select, :collection => @latests.collect { |ll| [ll[:name], ll[:id]] }, :label => "Latest", :required => true, :selected => @promo.latest.try(:id)  %>
  <% end %>
  <%= f.inputs do %>
    <%= f.input(:position, :label => "Position", :input_html => {:maxlength => 4}) %>
    <%= f.input(:aasm_state, :as => :select, :collection => Promotional::STATES, :label => 'Status') %>
  <% end %>
  <%= f.actions %>
<% end %>
