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