<% unless @promo.image_name.present? %>
  <h3>Upload Image First</h3>
  <%= direct_upload_form_for @uploader do |f| %>
    <p><%= f.file_field :image %></p>
    <p><%= f.submit "Upload Image", :id => :submit_buzz_img %></p>
  <% end %>
<% end %>
<%= semantic_form_for([:admin, @promo], :html => {:multipart => true}, :url => @promo.new_record? ? admin_buzzs_path : "/admin/buzzs/#{@promo.id}") do |f| %>
  <%= f.inputs do %>
    <%= f.input(:text_short, :label => "Who?", :input_html => {:maxlength => 512}) %>
    <%= f.input(:text_long, :label => "Quote", :input_html => {:rows => 3, :maxlength => 4096}) %>
    <%= f.input(:position, :label => "Position", :input_html => {:maxlength => 4}) %>
    <%= f.input(:aasm_state, :as => :select, :collection => Promotional::STATES, :label => 'Status') %>
    Image File: <%= @promo.image_name %>
    <%= f.hidden_field :key %>
    <% # = f.input(:photo, :as => :file, :hint => f.template.image_tag(@promo.image_url(:thumb), :size => '50x50')) if @promo.new_record? %>
  <% end %>
  <% if @promo.image_name.present? %>
    <%= f.actions %>
  <% end %>
<% end %>
