2009-05-25 21:39:43 +02:00
|
|
|
<h1>Edit Photo</h1>
|
2009-06-16 21:43:03 +02:00
|
|
|
|
2012-07-24 23:26:16 +02:00
|
|
|
<%= image_tag @photo.attachment.preview.url %>
|
|
|
|
|
2010-09-17 17:57:33 +02:00
|
|
|
<%= form_for @photo do |f| %>
|
2012-07-24 23:26:16 +02:00
|
|
|
<%= hidden_field_tag :collection_id, params[:collection_id] %>
|
|
|
|
<%= hidden_field_tag :album_id, params[:album_id] %>
|
|
|
|
<%= f.error_messages %>
|
|
|
|
<%= render :partial => "form", :object => f %>
|
|
|
|
<%= f.submit "Update" %>
|
2009-05-25 21:39:43 +02:00
|
|
|
<% end %>
|
|
|
|
|
2011-04-25 07:50:07 +02:00
|
|
|
<%= content_for :action_links do %>
|
2012-07-24 23:26:16 +02:00
|
|
|
<%= link_to("Delete photo", {:action => "destroy", :id => @photo, :collection_id => params[:collection_id]},
|
|
|
|
:confirm => "Are you sure you want to delete this photo?",
|
|
|
|
:method => :delete) %>
|
2009-06-16 21:43:03 +02:00
|
|
|
<% end %>
|