new.rhtml
26 lines
| 1.0 KiB
| text/html+ruby
|
RhtmlLexer
|
r1083 | <h2><%=l(:label_issue_new)%></h2> | ||
|
r330 | |||
|
r801 | <% labelled_tabular_form_for :issue, @issue, | ||
:html => {:multipart => true, :id => 'issue-form'} do |f| %> | ||||
|
r1115 | <%= error_messages_for 'issue' %> | ||
<div class="box"> | ||||
|
r860 | <%= render :partial => 'issues/form', :locals => {:f => f} %> | ||
|
r1115 | </div> | ||
|
r800 | <%= submit_tag l(:button_create) %> | ||
|
r2263 | <%= submit_tag l(:button_create_and_continue), :name => 'continue' %> | ||
|
r801 | <%= link_to_remote l(:label_preview), | ||
|
r1307 | { :url => { :controller => 'issues', :action => 'preview', :project_id => @project }, | ||
|
r801 | :method => 'post', | ||
:update => 'preview', | ||||
:with => "Form.serialize('issue-form')", | ||||
|
r1122 | :complete => "Element.scrollTo('preview')" | ||
|
r801 | }, :accesskey => accesskey(:preview) %> | ||
|
r2264 | |||
<%= javascript_tag "Form.Element.focus('issue_subject');" %> | ||||
|
r42 | <% end %> | ||
|
r801 | |||
<div id="preview" class="wiki"></div> | ||||
|
r2220 | |||
<% content_for :header_tags do %> | ||||
<%= stylesheet_link_tag 'scm' %> | ||||
<% end %> | ||||