Sha256: b0a1d15e49f4383e0ffcdcb1958034507de5bdaa4832e7c433da4ad58304e4f1
Contents?: true
Size: 1.22 KB
Versions: 17
Compression:
Stored size: 1.22 KB
Contents
<div class="control-group handle-pictures-umbrella"> <% unless @product.new_record? %> <div class='pictures-list'> <label class="control-label">Pictures</label> <div class='controls'> <ul class="thumbnails product_pictures"> <% @product.pictures.each do |picture| %> <%= content_tag_for(:li, picture, "data-id" => picture.id) do %> <%= link_to image_tag(picture.picture_url(:medium)), '#', class: 'thumbnail' %> <div class="actions"> <%= link_to '#', class: 'move' do %> <i class='icon-move icon-white'></i> <% end %> <%= link_to '#', class: 'delete', "data-action-id" => picture.id do %> <i class='icon-remove icon-white'></i> <% end %> </div> <% end %> <% end %> </ul> </div> </div> <% end %> <%= f.hidden_field :pictures_order, id: 'product_pictures_order' %> <%= f.fields_for :pictures do |picture_form| %> <%= picture_form.file_field :picture %> <%= picture_form.link_to_remove 'X', id: "delete_picture_#{picture_form.object.id}" %> <% end %> <%= f.link_to_add 'Add picture', :pictures %> </div>
Version data entries
17 entries across 17 versions & 1 rubygems