2006-12-17 11:10:18 +03:00
|
|
|
<h2><%=l(:label_issue)%> #<%= @issue.id %>: <%=h @issue.subject %></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
|
|
|
<%= error_messages_for 'issue' %>
|
2007-04-05 22:02:56 +04:00
|
|
|
<% labelled_tabular_form_for(:issue, @issue, :url => {:action => 'change_status', :id => @issue}, :html => {:multipart => true}) do |f| %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
|
|
|
<%= hidden_field_tag 'confirm', 1 %>
|
2006-11-28 01:31:14 +03:00
|
|
|
<%= hidden_field_tag 'new_status_id', @new_status.id %>
|
2007-04-05 22:02:56 +04:00
|
|
|
<%= f.hidden_field :lock_version %>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<div class="box">
|
2007-07-14 18:37:22 +04:00
|
|
|
<div class="splitcontentleft">
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><label><%=l(:label_issue_status_new)%></label> <%= @new_status.name %></p>
|
2007-04-05 22:02:56 +04:00
|
|
|
<p><%= f.select :assigned_to_id, (@issue.project.members.collect {|m| [m.name, m.user_id]}), :include_blank => true %></p>
|
|
|
|
<p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
|
|
|
|
<p><%= f.select :fixed_version_id, (@project.versions.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p>
|
2007-07-14 18:37:22 +04:00
|
|
|
</div>
|
|
|
|
<div class="splitcontentright">
|
|
|
|
<% if authorize_for('timelog', 'edit') %>
|
|
|
|
<% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %>
|
|
|
|
<p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p>
|
|
|
|
<p><%= time_entry.text_field :comments, :size => 40 %></p>
|
|
|
|
<p><%= time_entry.select :activity_id, (@activities.collect {|p| [p.name, p.id]}) %></p>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="clear"></div>
|
2006-09-09 20:07:02 +04:00
|
|
|
|
2006-11-28 01:31:14 +03:00
|
|
|
<p><label for="notes"><%= l(:field_notes) %></label>
|
2007-03-11 17:22:53 +03:00
|
|
|
<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %></p>
|
2006-11-28 01:31:14 +03:00
|
|
|
|
2007-04-05 21:20:04 +04:00
|
|
|
<% if authorize_for('issues', 'add_attachment') %>
|
|
|
|
<p id="attachments_p"><label><%=l(:label_attachment_new)%>
|
|
|
|
<%= image_to_function "add.png", "addFileField();return false" %></label>
|
|
|
|
<%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p>
|
|
|
|
<% end %>
|
2006-11-28 01:31:14 +03:00
|
|
|
</div>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
|
|
|
<%= submit_tag l(:button_save) %>
|
|
|
|
<% end %>
|