photomix/app/views/photos/edit.html.erb

17 lines
564 B
Plaintext
Raw Normal View History

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