##// END OF EJS Templates
Merged r4165 from trunk....
Eric Davis -
r4077:c51f9b8907f9
parent child
Show More
@@ -1,40 +1,42
1 <%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %>
2
1 3 <div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>>
2 4 <p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p>
3 5 <%= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue },
4 6 :update => :attributes,
5 7 :with => "Form.serialize('issue-form')" %>
6 8
7 9 <p><%= f.text_field :subject, :size => 80, :required => true %></p>
8 10
9 11 <% unless (@issue.new_record? && @issue.parent_issue_id.nil?) || !User.current.allowed_to?(:manage_subtasks, @project) %>
10 12 <p><%= f.text_field :parent_issue_id, :size => 10 %></p>
11 13 <div id="parent_issue_candidates" class="autocomplete"></div>
12 14 <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %>
13 15 <% end %>
14 16
15 17 <p><%= f.text_area :description,
16 18 :cols => 60,
17 19 :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),
18 20 :accesskey => accesskey(:edit),
19 21 :class => 'wiki-edit' %></p>
20 22 </div>
21 23
22 24 <div id="attributes" class="attributes">
23 25 <%= render :partial => 'issues/attributes' %>
24 26 </div>
25 27
26 28 <% if @issue.new_record? %>
27 29 <p><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p>
28 30 <% end %>
29 31
30 32 <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%>
31 33 <p><label><%= l(:label_issue_watchers) %></label>
32 34 <% @issue.project.users.sort.each do |user| -%>
33 35 <label class="floating"><%= check_box_tag 'issue[watcher_user_ids][]', user.id, @issue.watched_by?(user) %> <%=h user %></label>
34 36 <% end -%>
35 37 </p>
36 38 <% end %>
37 39
38 40 <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %>
39 41
40 42 <%= wikitoolbar_for 'issue_description' %>
General Comments 0
You need to be logged in to leave comments. Login now