2008-01-23 22:58:11 +03:00
|
|
|
<h2><%=l(:label_issue_new)%></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-10-06 12:54:05 +04:00
|
|
|
<% labelled_tabular_form_for :issue, @issue,
|
|
|
|
:html => {:multipart => true, :id => '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) %>
|
2007-10-06 12:54:05 +04:00
|
|
|
<%= link_to_remote l(:label_preview),
|
2008-04-03 17:16:51 +04:00
|
|
|
{ :url => { :controller => 'issues', :action => 'preview', :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) %>
|
2006-11-12 21:50:30 +03:00
|
|
|
<% end %>
|
2007-10-06 12:54:05 +04:00
|
|
|
|
|
|
|
<div id="preview" class="wiki"></div>
|