<%= form_for(:image, :url => { :controller => 'suppliers', :action => 'upload_image', :method => :post}, :html => { :multipart => true }) do |f| %>
<%= render :partial => 'upload_image', :locals => { :f => f } %>
<% if @status == true %>
<% else %>
<%= button t("upload") %>
<% end %>
<%= t('or') %> <%= link_to t("cancel"), "#", :id => "cancel_link" %>
<% end %>
Current images:
<% @supplier.images.each do |image| %>
- <%= sized_image(image, '100x100#') %>
- <%= link_to "destroy", { :action => 'destroy_image', :id => image.id}, :method => :delete %>
<% if image.logo == true %>
- This image is the current logo.
<% else %>
- <%= link_to "appoint logo", { :action => "make_logo", :id => image.id} %>
<% end %>
<% if image.featured == true %>
- This image is currently featured
<% else %>
- <%= link_to "make featured", { :action => "feature_image", :id => image.id} %>
<% end %>
<% end %>