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