@@ -1,40 +1,38 | |||
|
1 | 1 | <h2><%=l(:label_issue)%> #<%= @issue.id %>: <%=h @issue.subject %></h2> |
|
2 | 2 | |
|
3 | 3 | <%= error_messages_for 'issue' %> |
|
4 | 4 | <% labelled_tabular_form_for(:issue, @issue, :url => {:action => 'change_status', :id => @issue}, :html => {:multipart => true}) do |f| %> |
|
5 | 5 | |
|
6 | 6 | <%= hidden_field_tag 'confirm', 1 %> |
|
7 | 7 | <%= hidden_field_tag 'new_status_id', @new_status.id %> |
|
8 | 8 | <%= f.hidden_field :lock_version %> |
|
9 | 9 | |
|
10 | 10 | <div class="box"> |
|
11 | 11 | <div class="splitcontentleft"> |
|
12 | 12 | <p><label><%=l(:label_issue_status_new)%></label> <%= @new_status.name %></p> |
|
13 | 13 | <p><%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %></p> |
|
14 | 14 | <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p> |
|
15 | 15 | <p><%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p> |
|
16 | 16 | </div> |
|
17 | 17 | <div class="splitcontentright"> |
|
18 | 18 | <% if authorize_for('timelog', 'edit') %> |
|
19 | 19 | <% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %> |
|
20 | 20 | <p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p> |
|
21 | 21 | <p><%= time_entry.text_field :comments, :size => 40 %></p> |
|
22 | 22 | <p><%= time_entry.select :activity_id, (@activities.collect {|p| [p.name, p.id]}) %></p> |
|
23 | 23 | <% end %> |
|
24 | 24 | <% end %> |
|
25 | 25 | </div> |
|
26 | 26 | |
|
27 | 27 | <div class="clear"></div> |
|
28 | 28 | |
|
29 | 29 | <p><label for="notes"><%= l(:field_notes) %></label> |
|
30 | 30 | <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %></p> |
|
31 | 31 | |
|
32 | <% if authorize_for('issues', 'add_attachment') %> | |
|
33 | 32 | <p id="attachments_p"><label><%=l(:label_attachment_new)%> |
|
34 | 33 | <%= image_to_function "add.png", "addFileField();return false" %></label> |
|
35 | 34 | <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p> |
|
36 | <% end %> | |
|
37 | 35 | </div> |
|
38 | 36 | |
|
39 | 37 | <%= submit_tag l(:button_save) %> |
|
40 | 38 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now