2015-12-06 15:03:36 +08:00
|
|
|
<%= content_for(:header_tags) do %>
|
|
|
|
<%= import_ke(enable_at: false, prettify: false, init_activity: false) %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
2015-04-14 19:56:03 +08:00
|
|
|
<div class="project_r_h" xmlns="http://www.w3.org/1999/html">
|
2015-04-11 13:46:49 +08:00
|
|
|
<h2 class="project_h2"><%= l(:label_issue_new) %></h2>
|
2015-03-06 14:55:21 +08:00
|
|
|
</div>
|
2013-08-01 10:33:49 +08:00
|
|
|
<%= call_hook(:view_issues_new_top, {:issue => @issue}) %>
|
|
|
|
<%= labelled_form_for @issue, :url => project_issues_path(@project),
|
2015-04-15 17:28:53 +08:00
|
|
|
: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();" %>-->
|
2015-05-26 16:30:06 +08:00
|
|
|
<a href="#" class="blue_btn fl ml80" onclick="issue_desc_editor.sync();$('#issue-form').submit();">
|
2015-04-16 09:54:10 +08:00
|
|
|
<%= l(:button_create) %>
|
|
|
|
</a>
|
2015-04-16 14:13:12 +08:00
|
|
|
<%#= preview_link preview_new_issue_path(:project_id => @project), 'issue-form', 'preview', {:class => "blue_btn fl ml10"} %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|
|
|
|
<div id="preview" class="wiki"></div>
|
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= robot_exclusion_tag %>
|
|
|
|
<% end %>
|