@@ -1,57 +1,59 | |||||
1 | <h2><%=l(:label_issue_new)%>: <%= @tracker.name %></h2> |
|
1 | <h2><%=l(:label_issue_new)%>: <%= @tracker.name %></h2> | |
2 |
|
2 | |||
3 | <% labelled_tabular_form_for :issue, @issue, :url => {:action => 'add_issue'}, :html => {:multipart => true} do |f| %> |
|
3 | <% labelled_tabular_form_for :issue, @issue, :url => {:action => 'add_issue'}, :html => {:multipart => true} do |f| %> | |
4 | <%= error_messages_for 'issue' %> |
|
4 | <%= error_messages_for 'issue' %> | |
5 | <div class="box"> |
|
5 | <div class="box"> | |
6 | <!--[form:issue]--> |
|
6 | <!--[form:issue]--> | |
7 | <%= hidden_field_tag 'tracker_id', @tracker.id %> |
|
7 | <%= hidden_field_tag 'tracker_id', @tracker.id %> | |
8 |
|
8 | |||
9 | <div class="splitcontentleft"> |
|
9 | <div class="splitcontentleft"> | |
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.project.members.collect {|m| [m.name, m.user_id]}), :include_blank => true %></p> |
|
11 | <p><%= f.select :assigned_to_id, (@issue.project.members.collect {|m| [m.name, m.user_id]}), :include_blank => true %></p> | |
12 | <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %></p> |
|
12 | <p><%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %></p> | |
13 | </div> |
|
13 | </div> | |
14 | <div class="splitcontentright"> |
|
14 | <div class="splitcontentright"> | |
15 | <p><%= f.text_field :start_date, :size => 10 %><%= calendar_for('issue_start_date') %></p> |
|
15 | <p><%= f.text_field :start_date, :size => 10 %><%= calendar_for('issue_start_date') %></p> | |
16 | <p><%= f.text_field :due_date, :size => 10 %><%= calendar_for('issue_due_date') %></p> |
|
16 | <p><%= f.text_field :due_date, :size => 10 %><%= calendar_for('issue_due_date') %></p> | |
17 | <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p> |
|
17 | <p><%= f.select :done_ratio, ((0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></p> | |
18 | </div> |
|
18 | </div> | |
19 |
|
19 | |||
20 | <div class="clear"> |
|
20 | <div class="clear"> | |
21 | <p><%= f.text_field :subject, :size => 80, :required => true %></p> |
|
21 | <p><%= f.text_field :subject, :size => 80, :required => true %></p> | |
22 | <p><%= f.text_area :description, :cols => 60, :rows => 10, :required => true, :class => 'wiki-edit' %></p> |
|
22 | <p><%= f.text_area :description, :cols => 60, :rows => 10, :required => true, :class => 'wiki-edit' %></p> | |
23 |
|
23 | |||
24 | <% for @custom_value in @custom_values %> |
|
24 | <% for @custom_value in @custom_values %> | |
25 | <p><%= custom_field_tag_with_label @custom_value %></p> |
|
25 | <p><%= custom_field_tag_with_label @custom_value %></p> | |
26 | <% end %> |
|
26 | <% end %> | |
27 |
|
27 | |||
|
28 | <p><%= f.select :fixed_version_id, (@project.versions.collect {|v| [v.name, v.id]}), { :include_blank => true } %></p> | |||
|
29 | ||||
28 | <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%> |
|
30 | <p id="attachments_p"><label for="attachment_file"><%=l(:label_attachment)%> | |
29 | <%= image_to_function "add.png", "addFileField();return false" %></label> |
|
31 | <%= image_to_function "add.png", "addFileField();return false" %></label> | |
30 | <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p> |
|
32 | <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p> | |
31 |
|
33 | |||
32 | </div> |
|
34 | </div> | |
33 | <!--[eoform:issue]--> |
|
35 | <!--[eoform:issue]--> | |
34 | </div> |
|
36 | </div> | |
35 | <%= submit_tag l(:button_create) %> |
|
37 | <%= submit_tag l(:button_create) %> | |
36 | <% end %> |
|
38 | <% end %> | |
37 |
|
39 | |||
38 | <% if Setting.text_formatting == 'textile' %> |
|
40 | <% if Setting.text_formatting == 'textile' %> | |
39 | <%= javascript_include_tag 'jstoolbar' %> |
|
41 | <%= javascript_include_tag 'jstoolbar' %> | |
40 | <script type="text/javascript"> |
|
42 | <script type="text/javascript"> | |
41 | //<![CDATA[ |
|
43 | //<![CDATA[ | |
42 | if (document.getElementById) { |
|
44 | if (document.getElementById) { | |
43 | if (document.getElementById('issue_description')) { |
|
45 | if (document.getElementById('issue_description')) { | |
44 | var commentTb = new jsToolBar(document.getElementById('issue_description')); |
|
46 | var commentTb = new jsToolBar(document.getElementById('issue_description')); | |
45 | commentTb.draw(); |
|
47 | commentTb.draw(); | |
46 | } |
|
48 | } | |
47 | } |
|
49 | } | |
48 | //]]> |
|
50 | //]]> | |
49 | </script> |
|
51 | </script> | |
50 | <% end %> |
|
52 | <% end %> | |
51 |
|
53 | |||
52 | <% content_for :header_tags do %> |
|
54 | <% content_for :header_tags do %> | |
53 | <%= javascript_include_tag 'calendar/calendar' %> |
|
55 | <%= javascript_include_tag 'calendar/calendar' %> | |
54 | <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %> |
|
56 | <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %> | |
55 | <%= javascript_include_tag 'calendar/calendar-setup' %> |
|
57 | <%= javascript_include_tag 'calendar/calendar-setup' %> | |
56 | <%= stylesheet_link_tag 'calendar' %> |
|
58 | <%= stylesheet_link_tag 'calendar' %> | |
57 | <% end %> No newline at end of file |
|
59 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now