block rails3
This commit is contained in:
parent
14169b1770
commit
9ddc6b98d6
3 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
|||
<%= form.label :albums %><br />
|
||||
<div id="collection_albums">
|
||||
<% for album in @collection.albums %>
|
||||
<% form.fields_for :album_list do |album_fields| %>
|
||||
<%= form.fields_for :album_list do |album_fields| %>
|
||||
<span>
|
||||
<img src="/images/delete-24x24.png" border="" class="delete" />
|
||||
<% if album.photos.empty? %>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<%= form_for :photos, :url => update_multiple_photos_path, :html => { :method => :put } do |f| %>
|
||||
<% for photo in @photos %>
|
||||
<p>
|
||||
<% f.fields_for photo, :index => photo.id do |p|%>
|
||||
<%= f.fields_for photo, :index => photo.id do |p|%>
|
||||
<%= p.check_box :_delete %>
|
||||
<%= render :partial => "photos/thumb", :locals => {:photo => photo } %>
|
||||
<%= p.text_field :title %>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<%= form_for :photos, :url => update_multiple_photos_path, :html => { :method => :put } do |f| %>
|
||||
<% for photo in @photos %>
|
||||
<p>
|
||||
<% f.fields_for photo do |p|%>
|
||||
<%= f.fields_for photo do |p|%>
|
||||
<%= render :partial => "photos/thumb", :locals => {:photo => photo } %>
|
||||
<%= p.text_field :title, :index => photo.id %>
|
||||
<%= p.text_field :tags, :index => photo.id, :value => photo.tag_list %>
|
||||
|
|
Loading…
Reference in a new issue