form_tag
このフォームを からに変更したいform_for
ので、同じフォームで 2 つの送信ボタンを使用できるようになります。どうすれば変更できますか?
gallery.html.haml
- form_tag bulk_content_destroy_admin_project_path(params[@project.id]), :method => "get" do
-if @entries.length == 0
%h1 Theres is no design in project.
-else
%input.select_all{:type => "checkbox"}
= submit_tag "Delete All", :style => "margin-bottom: 10px;"
%ul.gallery
-@entries.each do |p|
%li.gallery_list{ :id => 'entry_' + p.id.to_s }
.left_column
= check_box_tag "designs_ids[]", p.id, false, :class => "chose_data"
%a.group{:href => p.design_url(:original) }
=image_tag(p.design_url(:_300px), {:title => p.title, :width => '300px', :height => '225px' })
.info
%br
="#" + p.entry_no.to_s + " - " + p.title
%ul
-if p.withdrawn?
%li
Design is withdrawn
%li
Designer :
=link_to p.owner.user_name, admin_users_profile_path(p.owner) if p.owner
%li
Rating :
=p.rating
%li
=link_to "Download File", p.design_url(:original)
-if p.view_in_showcase == true
=link_to "Remove from top", showcase_admin_project_path(:id => p.project_id, :content_id => p.id)
-else
=link_to "Add to top", showcase_admin_project_path(:id => p.project_id, :content_id => p.id)
%li
= link_to "Delete", content_destroy_admin_project_path(:id => p.project_id, :content_id => p.id, :page => params[:page])