2008-01-23 22:58:11 +03:00
|
|
|
<h2><%=l(:label_issue_new)%></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2010-04-22 19:43:57 +04:00
|
|
|
<% labelled_tabular_form_for :issue, @issue, :url => {:controller => 'issues', :action => 'create', :project_id => @project},
|
2010-10-30 20:15:31 +04:00
|
|
|
:html => {:multipart => true, :id => 'issue-form', :class => 'tabular new-issue-form'} do |f| %>
|
2008-02-09 19:11:18 +03:00
|
|
|
<%= error_messages_for 'issue' %>
|
|
|
|
<div class="box">
|
2007-10-28 17:31:59 +03:00
|
|
|
<%= render :partial => 'issues/form', :locals => {:f => f} %>
|
2008-02-09 19:11:18 +03:00
|
|
|
</div>
|
2007-10-06 12:08:29 +04:00
|
|
|
<%= submit_tag l(:button_create) %>
|
2009-01-16 20:20:41 +03:00
|
|
|
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>
|
2007-10-06 12:54:05 +04:00
|
|
|
<%= link_to_remote l(:label_preview),
|
2010-08-18 19:01:35 +04:00
|
|
|
{ :url => preview_issue_path(:project_id => @project),
|
2007-10-06 12:54:05 +04:00
|
|
|
:method => 'post',
|
|
|
|
:update => 'preview',
|
|
|
|
:with => "Form.serialize('issue-form')",
|
2008-02-11 23:45:46 +03:00
|
|
|
:complete => "Element.scrollTo('preview')"
|
2007-10-06 12:54:05 +04:00
|
|
|
}, :accesskey => accesskey(:preview) %>
|
2009-01-16 23:57:18 +03:00
|
|
|
|
|
|
|
<%= javascript_tag "Form.Element.focus('issue_subject');" %>
|
2006-11-12 21:50:30 +03:00
|
|
|
<% end %>
|
2007-10-06 12:54:05 +04:00
|
|
|
|
|
|
|
<div id="preview" class="wiki"></div>
|
2009-01-03 16:14:28 +03:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag 'scm' %>
|
2011-04-12 23:22:44 +04:00
|
|
|
<%= robot_exclusion_tag %>
|
2009-01-03 16:14:28 +03:00
|
|
|
<% end %>
|