@@ -8,6 +8,13 | |||
|
8 | 8 | :with => "Form.serialize('issue-form')" %> |
|
9 | 9 | <% end %> |
|
10 | 10 | |
|
11 | <p><%= f.text_field :subject, :size => 80, :required => true %></p> | |
|
12 | <p><%= f.text_area :description, :required => true, | |
|
13 | :cols => 60, | |
|
14 | :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), | |
|
15 | :accesskey => accesskey(:edit), | |
|
16 | :class => 'wiki-edit' %></p> | |
|
17 | ||
|
11 | 18 | <div class="splitcontentleft"> |
|
12 | 19 | <% if @issue.new_record? %> |
|
13 | 20 | <p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %></p> |
@@ -22,6 +29,9 | |||
|
22 | 29 | l(:label_issue_category_new), 'category[name]', |
|
23 | 30 | {:controller => 'projects', :action => 'add_issue_category', :id => @project}, |
|
24 | 31 | :class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p> |
|
32 | <%= content_tag('p', f.select(:fixed_version_id, | |
|
33 | (@project.versions.sort.collect {|v| [v.name, v.id]}), | |
|
34 | { :include_blank => true })) unless @project.versions.empty? %> | |
|
25 | 35 | </div> |
|
26 | 36 | |
|
27 | 37 | <div class="splitcontentright"> |
@@ -31,14 +41,7 | |||
|
31 | 41 | <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p> |
|
32 | 42 | </div> |
|
33 | 43 | |
|
34 | <p><%= f.text_field :subject, :size => 80, :required => true %></p> | |
|
35 | <p><%= f.text_area :description, :required => true, | |
|
36 | :cols => 60, | |
|
37 | :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), | |
|
38 | :accesskey => accesskey(:edit), | |
|
39 | :class => 'wiki-edit' %></p> | |
|
40 | <p><%= f.select :fixed_version_id, (@project.versions.sort.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p> | |
|
41 | ||
|
44 | <div style="clear:both;"> </div> | |
|
42 | 45 | <%= render :partial => 'form_custom_fields', :locals => {:values => @custom_values} %> |
|
43 | 46 | |
|
44 | 47 | <% if @issue.new_record? %> |
General Comments 0
You need to be logged in to leave comments.
Login now