2009-06-18 15:38:37 +02:00
|
|
|
<% form_for :photos, :url => update_multiple_photos_path, :html => { :method => :put } do |f| %>
|
|
|
|
<% for photo in @photos %>
|
|
|
|
<p>
|
2009-06-28 18:02:19 +02:00
|
|
|
<% f.fields_for photo, :index => photo.id do |p|%>
|
|
|
|
<%= p.check_box :_delete %>
|
2009-06-18 15:38:37 +02:00
|
|
|
<%= render :partial => "photos/thumb", :locals => {:photo => photo } %>
|
2009-06-28 18:02:19 +02:00
|
|
|
<%= p.text_field :title %>
|
|
|
|
<%= p.text_field :tags, :value => photo.tag_list %>
|
2009-06-18 15:38:37 +02:00
|
|
|
<% end%>
|
|
|
|
</p>
|
|
|
|
<% end%>
|
|
|
|
<p><%= f.submit "Submit" %></p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<br /><%= link_to "Back to #{@album.title}", @album %>
|