<%= javascript_include_tag "/assets/kindeditor/kindeditor",'/assets/kindeditor/pasteimg'  %>
<div class="project_r_h" xmlns="http://www.w3.org/1999/html">
  <h2 class="project_h2"><%= l(:label_issue_new) %></h2>
</div>
<%= call_hook(:view_issues_new_top, {:issue => @issue}) %>
<%= labelled_form_for @issue, :url => project_issues_path(@project),
                      :html => {:id => 'issue-form', :multipart => true} do |f| %>
    <%= error_messages_for 'issue' %>
    <%= hidden_field_tag 'copy_from', params[:copy_from] if params[:copy_from] %>
    <div>
      <%= render :partial => 'issues/form', :locals => {:f => f} %>
    </div>
    <!--<%= javascript_tag "$('#issue_subject').focus();" %>-->
    <a href="#" class="blue_btn fl ml80" onclick="issue_desc_editor.sync();$('#issue-form').submit();">
      <%= l(:button_create) %>
    </a>
    <%#= preview_link preview_new_issue_path(:project_id => @project), 'issue-form', 'preview', {:class => "blue_btn fl ml10"} %>
<% end %>
<div id="preview" class="wiki"></div>

<% content_for :header_tags do %>
    <%= robot_exclusion_tag %>
<% end %>
