From 81d1c212b74fc7e45a9c4175638351286296b277 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Tue, 3 Jun 2008 16:48:45 -0700 Subject: [PATCH] Fixed funky forms. --- app/views/deliverables/_deliverable.html.erb | 6 ++++-- app/views/deliverables/_list.html.erb | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/deliverables/_deliverable.html.erb b/app/views/deliverables/_deliverable.html.erb index 25bec98..5253cc5 100644 --- a/app/views/deliverables/_deliverable.html.erb +++ b/app/views/deliverables/_deliverable.html.erb @@ -30,10 +30,12 @@ <%= content_tag(:p,link_to("Edit", :action => 'edit', :id => @project.id, :deliverable_id => deliverable.id)) -%> <%= content_tag(:p,link_to("Delete", { :action => 'destroy', :id => @project.id, :deliverable_id => deliverable.id}, :confirm => l(:text_are_you_sure))) -%>
- <%= form_tag(:action => 'bulk_assign_issues', :id => @project.id, :deliverable_id => deliverable.id) %> + <% form_for :deliverable, deliverable, :url => { :action => "bulk_assign_issues", :id => @project.id, :deliverable_id => deliverable.id} do |f| %> + <%= select("version", "id", @project.versions.sort.collect {|v| [v.name, v.id ] }, { :include_blank => true }) %> - <%= submit_tag(l(:button_change)) %> + <%= submit_tag(l(:button_change)) %> + <% end %>
diff --git a/app/views/deliverables/_list.html.erb b/app/views/deliverables/_list.html.erb index 7d32cb8..5cb5f61 100644 --- a/app/views/deliverables/_list.html.erb +++ b/app/views/deliverables/_list.html.erb @@ -1,4 +1,3 @@ -<% form_tag({}) do -%> <%= sort_header_tag("#{Deliverable.table_name}.id", :caption => '#', :default_order => 'desc') %> @@ -16,4 +15,4 @@ <% end -%>
-<% end -%> +