<%= form_for @banner, :url => path, :html => {:class => 'form-horizontal spud_banner_form', :target => 'spud_banners_upload_target'} do |f| %> <%= error_messages_for(f.object) %>
<%= f.label :link_to, 'Link to', :class => 'control-label' %>
<%= f.text_field :link_to %>
<%= f.label :link_target, 'Open Link in', :class => 'control-label' %>
<%= f.select :link_target, options_for_select([ ['Same Window', '_self'], ['New Window', '_blank'] ], @banner.link_target) %>
<%= f.label :title, 'Image Title', :class => 'control-label' %>
<%= f.text_field :title %>
<%= f.label :alt, 'Alt Text', :class => 'control-label' %>
<%= f.text_field :alt %>
<%= f.label :banner, 'Banner', :class => 'control-label' %>
<%= f.file_field :banner %>
<% end %>