##// END OF EJS Templates
Added line under tracker name to make clear what is going on here...
John Goerzen -
r1258:93a33c62862d
parent child
Show More
@@ -1,57 +1,58
1 <% if @issue.new_record? %>
1 <% if @issue.new_record? %>
2 <p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p>
2 <p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p>
3 <%= observe_field :issue_tracker_id, :url => { :action => :new },
3 <%= observe_field :issue_tracker_id, :url => { :action => :new },
4 :update => :content,
4 :update => :content,
5 :with => "Form.serialize('issue-form')" %>
5 :with => "Form.serialize('issue-form')" %>
6 <hr />
6 <% end %>
7 <% end %>
7
8
8 <div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>>
9 <div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>>
9 <p><%= f.text_field :subject, :size => 80, :required => true %></p>
10 <p><%= f.text_field :subject, :size => 80, :required => true %></p>
10 <p><%= f.text_area :description, :required => true,
11 <p><%= f.text_area :description, :required => true,
11 :cols => 60,
12 :cols => 60,
12 :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),
13 :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),
13 :accesskey => accesskey(:edit),
14 :accesskey => accesskey(:edit),
14 :class => 'wiki-edit' %></p>
15 :class => 'wiki-edit' %></p>
15 </div>
16 </div>
16
17
17 <div class="splitcontentleft">
18 <div class="splitcontentleft">
18 <% if @issue.new_record? || @allowed_statuses.any? %>
19 <% if @issue.new_record? || @allowed_statuses.any? %>
19 <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>
20 <% else %>
21 <% else %>
21 <p><label><%= l(:field_status) %></label> <%= @issue.status.name %></p>
22 <p><label><%= l(:field_status) %></label> <%= @issue.status.name %></p>
22 <% end %>
23 <% end %>
23
24
24 <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), :required => true %></p>
25 <p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), :required => true %></p>
25 <p><%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %></p>
26 <p><%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %></p>
26 <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %>
27 <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %>
27 <%= prompt_to_remote(l(:label_issue_category_new),
28 <%= prompt_to_remote(l(:label_issue_category_new),
28 l(:label_issue_category_new), 'category[name]',
29 l(:label_issue_category_new), 'category[name]',
29 {:controller => 'projects', :action => 'add_issue_category', :id => @project},
30 {:controller => 'projects', :action => 'add_issue_category', :id => @project},
30 :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>
31 <%= content_tag('p', f.select(:fixed_version_id,
32 <%= content_tag('p', f.select(:fixed_version_id,
32 (@project.versions.sort.collect {|v| [v.name, v.id]}),
33 (@project.versions.sort.collect {|v| [v.name, v.id]}),
33 { :include_blank => true })) unless @project.versions.empty? %>
34 { :include_blank => true })) unless @project.versions.empty? %>
34 </div>
35 </div>
35
36
36 <div class="splitcontentright">
37 <div class="splitcontentright">
37 <p><%= f.text_field :start_date, :size => 10 %><%= calendar_for('issue_start_date') %></p>
38 <p><%= f.text_field :start_date, :size => 10 %><%= calendar_for('issue_start_date') %></p>
38 <p><%= f.text_field :due_date, :size => 10 %><%= calendar_for('issue_due_date') %></p>
39 <p><%= f.text_field :due_date, :size => 10 %><%= calendar_for('issue_due_date') %></p>
39 <p><%= f.text_field :estimated_hours, :size => 3 %> <%= l(:field_hours) %></p>
40 <p><%= f.text_field :estimated_hours, :size => 3 %> <%= l(:field_hours) %></p>
40 <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>
41 </div>
42 </div>
42
43
43 <div style="clear:both;"> </div>
44 <div style="clear:both;"> </div>
44 <%= render :partial => 'form_custom_fields', :locals => {:values => @custom_values} %>
45 <%= render :partial => 'form_custom_fields', :locals => {:values => @custom_values} %>
45
46
46 <% if @issue.new_record? %>
47 <% if @issue.new_record? %>
47 <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
48 <p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
48 <% end %>
49 <% end %>
49
50
50 <%= wikitoolbar_for 'issue_description' %>
51 <%= wikitoolbar_for 'issue_description' %>
51
52
52 <% content_for :header_tags do %>
53 <% content_for :header_tags do %>
53 <%= javascript_include_tag 'calendar/calendar' %>
54 <%= javascript_include_tag 'calendar/calendar' %>
54 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
55 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
55 <%= javascript_include_tag 'calendar/calendar-setup' %>
56 <%= javascript_include_tag 'calendar/calendar-setup' %>
56 <%= stylesheet_link_tag 'calendar' %>
57 <%= stylesheet_link_tag 'calendar' %>
57 <% end %>
58 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now