|
@@
-8,6
+8,13
|
|
8
|
:with => "Form.serialize('issue-form')" %>
|
|
8
|
:with => "Form.serialize('issue-form')" %>
|
|
9
|
<% end %>
|
|
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
|
<div class="splitcontentleft">
|
|
18
|
<div class="splitcontentleft">
|
|
12
|
<% if @issue.new_record? %>
|
|
19
|
<% if @issue.new_record? %>
|
|
13
|
<p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %></p>
|
|
20
|
<p><%= f.select :status_id, (@allowed_statuses.collect {|p| [p.name, p.id]}), :required => true %></p>
|
|
@@
-22,6
+29,9
|
|
22
|
l(:label_issue_category_new), 'category[name]',
|
|
29
|
l(:label_issue_category_new), 'category[name]',
|
|
23
|
{:controller => 'projects', :action => 'add_issue_category', :id => @project},
|
|
30
|
{:controller => 'projects', :action => 'add_issue_category', :id => @project},
|
|
24
|
:class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p>
|
|
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
|
</div>
|
|
35
|
</div>
|
|
26
|
|
|
36
|
|
|
27
|
<div class="splitcontentright">
|
|
37
|
<div class="splitcontentright">
|
|
@@
-31,14
+41,7
|
|
31
|
<p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
|
|
41
|
<p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p>
|
|
32
|
</div>
|
|
42
|
</div>
|
|
33
|
|
|
43
|
|
|
34
|
<p><%= f.text_field :subject, :size => 80, :required => true %></p>
|
|
44
|
<div style="clear:both;"> </div>
|
|
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
|
|
|
|
|
|
42
|
<%= render :partial => 'form_custom_fields', :locals => {:values => @custom_values} %>
|
|
45
|
<%= render :partial => 'form_custom_fields', :locals => {:values => @custom_values} %>
|
|
43
|
|
|
46
|
|
|
44
|
<% if @issue.new_record? %>
|
|
47
|
<% if @issue.new_record? %>
|