2007-10-28 17:31:59 +03:00
|
|
|
<h2><%=l(:label_issue_new)%>: <%= @issue.tracker %></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2007-10-06 12:54:05 +04:00
|
|
|
<% labelled_tabular_form_for :issue, @issue,
|
|
|
|
:url => {:action => 'add_issue'},
|
|
|
|
:html => {:multipart => true, :id => 'issue-form'} do |f| %>
|
2007-10-28 17:31:59 +03:00
|
|
|
<%= f.hidden_field :tracker_id %>
|
|
|
|
<%= render :partial => 'issues/form', :locals => {:f => f} %>
|
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),
|
|
|
|
{ :url => { :controller => 'issues', :action => 'preview', :id => @issue },
|
|
|
|
:method => 'post',
|
|
|
|
:update => 'preview',
|
|
|
|
:with => "Form.serialize('issue-form')",
|
|
|
|
:complete => "location.href='#preview-top'"
|
|
|
|
}, :accesskey => accesskey(:preview) %>
|
2006-11-12 21:50:30 +03:00
|
|
|
<% end %>
|
2007-10-06 12:54:05 +04:00
|
|
|
|
|
|
|
<a name="preview-top"></a>
|
|
|
|
<div id="preview" class="wiki"></div>
|