<%= labelled_form_for @issue, :html => {:id => 'issue-form', :multipart => true} do |f| %> <%= error_messages_for 'issue', 'time_entry' %> <%= render :partial => 'conflict' if @conflict %>
<% if @edit_allowed || !@allowed_statuses.empty? %>
<%= l(:label_change_properties) %>
<%= render :partial => 'form', :locals => {:f => f} %>
<% end %>
<%= l(:field_notes) %> <%= f.text_area :notes, :cols => 60, :rows => 10, :class => 'wiki-edit', :no_label => true %> <%= wikitoolbar_for 'issue_notes' %> <% if @issue.safe_attribute? 'private_notes' %> <% end %> <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %>
<%= l(:label_attachment_plural) %>

<%= render :partial => 'attachments/form', :locals => {:container => @issue} %>

<%= watchers_checkboxes(@issue, @available_watchers) %> <%= link_to l(:label_search_for_watchers), {:controller => 'watchers', :action => 'new', :project_id => @issue.project}, :remote => true, :method => 'get' %>

<%= f.hidden_field :lock_version %> <%= hidden_field_tag 'last_journal_id', params[:last_journal_id] || @issue.last_journal_id %> <%= hidden_field_tag 'reference_user_id', params[:reference_user_id]%> <%= submit_tag l(:button_submit) %> <%= preview_link preview_edit_issue_path(:project_id => @project, :id => @issue), 'issue-form' %> <% end %>