From 1cc700655581cdfaa40ba4168018ae5dd1542bfa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 5 Apr 2007 18:02:56 +0000 Subject: [PATCH] Modified the change_status view to use the form builder. git-svn-id: http://redmine.rubyforge.org/svn/trunk@426 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/change_status.rhtml | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/app/views/issues/change_status.rhtml b/app/views/issues/change_status.rhtml index f253c9600..11fceccca 100644 --- a/app/views/issues/change_status.rhtml +++ b/app/views/issues/change_status.rhtml @@ -1,31 +1,17 @@

<%=l(:label_issue)%> #<%= @issue.id %>: <%=h @issue.subject %>

<%= error_messages_for 'issue' %> -<% form_tag({:action => 'change_status', :id => @issue}, :multipart => true, :class => "tabular") do %> +<% labelled_tabular_form_for(:issue, @issue, :url => {:action => 'change_status', :id => @issue}, :html => {:multipart => true}) do |f| %> <%= hidden_field_tag 'confirm', 1 %> <%= hidden_field_tag 'new_status_id', @new_status.id %> +<%= f.hidden_field :lock_version %>

<%= @new_status.name %>

- -

-

- - -

-<%= select("issue", "done_ratio", ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) ) %> -

- - -

-

+

<%= f.select :assigned_to_id, (@issue.project.members.collect {|m| [m.name, m.user_id]}), :include_blank => true %>

+

<%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>

+

<%= f.select :fixed_version_id, (@project.versions.collect {|v| [v.name, v.id]}), { :include_blank => true } %>

<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>

@@ -35,9 +21,7 @@ <%= image_to_function "add.png", "addFileField();return false" %> <%= file_field_tag 'attachments[]', :size => 30 %> (<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)

<% end %> -
-<%= hidden_field 'issue', 'lock_version' %> <%= submit_tag l(:button_save) %> <% end %>