2008-01-23 20:58:11 +01:00
|
|
|
<h2><%=l(:label_issue_new)%></h2>
|
2007-03-12 18:59:02 +01:00
|
|
|
|
2007-10-06 10:54:05 +02:00
|
|
|
<% labelled_tabular_form_for :issue, @issue,
|
|
|
|
:html => {:multipart => true, :id => 'issue-form'} do |f| %>
|
2008-02-09 17:11:18 +01:00
|
|
|
<%= error_messages_for 'issue' %>
|
|
|
|
<div class="box">
|
2007-10-28 15:31:59 +01:00
|
|
|
<%= render :partial => 'issues/form', :locals => {:f => f} %>
|
2008-02-09 17:11:18 +01:00
|
|
|
</div>
|
2007-10-06 10:08:29 +02:00
|
|
|
<%= submit_tag l(:button_create) %>
|
2007-10-06 10:54:05 +02:00
|
|
|
<%= link_to_remote l(:label_preview),
|
2008-04-28 12:36:12 +02:00
|
|
|
{ :url => { :controller => 'issues', :action => 'preview', :project_id => @project },
|
2007-10-06 10:54:05 +02:00
|
|
|
:method => 'post',
|
|
|
|
:update => 'preview',
|
|
|
|
:with => "Form.serialize('issue-form')",
|
2008-02-11 21:45:46 +01:00
|
|
|
:complete => "Element.scrollTo('preview')"
|
2007-10-06 10:54:05 +02:00
|
|
|
}, :accesskey => accesskey(:preview) %>
|
2006-11-12 19:50:30 +01:00
|
|
|
<% end %>
|
2007-10-06 10:54:05 +02:00
|
|
|
|
|
|
|
<div id="preview" class="wiki"></div>
|