You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

new.rhtml 837B

12345678910111213141516171819
  1. <h2><%=l(:label_issue_new)%></h2>
  2. <% labelled_tabular_form_for :issue, @issue,
  3. :html => {:multipart => true, :id => 'issue-form'} do |f| %>
  4. <%= error_messages_for 'issue' %>
  5. <div class="box">
  6. <%= render :partial => 'issues/form', :locals => {:f => f} %>
  7. </div>
  8. <%= submit_tag l(:button_create) %>
  9. <%= link_to_remote l(:label_preview),
  10. { :url => { :controller => 'issues', :action => 'preview', :project_id => @project },
  11. :method => 'post',
  12. :update => 'preview',
  13. :with => "Form.serialize('issue-form')",
  14. :complete => "Element.scrollTo('preview')"
  15. }, :accesskey => accesskey(:preview) %>
  16. <% end %>
  17. <div id="preview" class="wiki"></div>