%= form_for [:admin, @image], :html => { :multipart => true } do |f| %>
<%= render "shared/error_messages", :target => @image %>
<%= f.label :title, t('images.title'), :class => "desc required" %>
<%= f.text_field :title, :size => "80" %>
<%= f.label :image, t('images.image_field') %>
<%= f.file_field :image %>
<%= f.submit t('images.submit') %>
<%= link_to t('cancel'), admin_images_path %>
<% end %>
<% if @image.id %>
<%= form_for [:admin, @image], :html => { :method => "delete" } do |f| %>
<% end %>
<% end %>