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