@@ -1,37 +1,36 | |||||
1 | <% fields_for :issue, @issue, :builder => TabularFormBuilder do |f| %> |
|
1 | <% fields_for :issue, @issue, :builder => TabularFormBuilder do |f| %> | |
2 |
|
2 | |||
3 | <div class="splitcontentleft"> |
|
3 | <div class="splitcontentleft"> | |
4 | <% if @issue.new_record? || @allowed_statuses.any? %> |
|
4 | <% if @issue.new_record? || @allowed_statuses.any? %> | |
5 | <p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %></p> |
|
5 | <p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %></p> | |
6 | <% else %> |
|
6 | <% else %> | |
7 | <p><label><%= l(:field_status) %></label> <%= @issue.status.name %></p> |
|
7 | <p><label><%= l(:field_status) %></label> <%= @issue.status.name %></p> | |
8 | <% end %> |
|
8 | <% end %> | |
9 |
|
9 | |||
10 | <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), :required => true %></p> |
|
10 | <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), :required => true %></p> | |
11 | <p><%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %></p> |
|
11 | <p><%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %></p> | |
12 | <% unless @project.issue_categories.empty? %> |
|
12 | <% unless @project.issue_categories.empty? %> | |
13 | <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %> |
|
13 | <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %> | |
14 | <%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'), |
|
14 | <%= prompt_to_remote(image_tag('add.png', :style => 'vertical-align: middle;'), | |
15 | l(:label_issue_category_new), |
|
15 | l(:label_issue_category_new), | |
16 | 'category[name]', |
|
16 | 'category[name]', | |
17 | {:controller => 'projects', :action => 'add_issue_category', :id => @project}, |
|
17 | {:controller => 'projects', :action => 'add_issue_category', :id => @project}, | |
18 | :class => 'small', |
|
|||
19 | :title => l(:label_issue_category_new), |
|
18 | :title => l(:label_issue_category_new), | |
20 | :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p> |
|
19 | :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p> | |
21 | <% end %> |
|
20 | <% end %> | |
22 | <% unless @issue.assignable_versions.empty? %> |
|
21 | <% unless @issue.assignable_versions.empty? %> | |
23 | <p><%= f.select :fixed_version_id, (@issue.assignable_versions.collect {|v| [v.name, v.id]}), :include_blank => true %></p> |
|
22 | <p><%= f.select :fixed_version_id, (@issue.assignable_versions.collect {|v| [v.name, v.id]}), :include_blank => true %></p> | |
24 | <% end %> |
|
23 | <% end %> | |
25 | </div> |
|
24 | </div> | |
26 |
|
25 | |||
27 | <div class="splitcontentright"> |
|
26 | <div class="splitcontentright"> | |
28 | <p><%= f.text_field :start_date, :size => 10 %><%= calendar_for('issue_start_date') %></p> |
|
27 | <p><%= f.text_field :start_date, :size => 10 %><%= calendar_for('issue_start_date') %></p> | |
29 | <p><%= f.text_field :due_date, :size => 10 %><%= calendar_for('issue_due_date') %></p> |
|
28 | <p><%= f.text_field :due_date, :size => 10 %><%= calendar_for('issue_due_date') %></p> | |
30 | <p><%= f.text_field :estimated_hours, :size => 3 %> <%= l(:field_hours) %></p> |
|
29 | <p><%= f.text_field :estimated_hours, :size => 3 %> <%= l(:field_hours) %></p> | |
31 | <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p> |
|
30 | <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p> | |
32 | </div> |
|
31 | </div> | |
33 |
|
32 | |||
34 | <div style="clear:both;"> </div> |
|
33 | <div style="clear:both;"> </div> | |
35 | <%= render :partial => 'form_custom_fields' %> |
|
34 | <%= render :partial => 'form_custom_fields' %> | |
36 |
|
35 | |||
37 | <% end %> |
|
36 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now