<%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %>
>

<%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %>

<%= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue }, :update => :attributes, :with => "Form.serialize('issue-form')" %>

<%= f.text_field :subject, :size => 80, :required => true %>

<% if User.current.allowed_to?(:manage_subtasks, @project) %>

<%= f.text_field :parent_issue_id, :size => 10 %>

<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> <% end %>

<%= f.text_area :description, :cols => 60, :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), :accesskey => accesskey(:edit), :class => 'wiki-edit' %>

<%= render :partial => 'issues/attributes' %>
<% if @issue.new_record? %>

<%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %>

<% end %> <% if @issue.new_record? && User.current.allowed_to?(:add_issue_watchers, @project) -%>

<% @issue.project.users.sort.each do |user| -%> <% end -%>

<% end %> <%= call_hook(:view_issues_form_details_bottom, { :issue => @issue, :form => f }) %> <%= wikitoolbar_for 'issue_description' %>