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 730B

1234567891011121314
  1. <h2><%=l(:label_news_new)%></h2>
  2. <% labelled_tabular_form_for :news, @news, :url => { :controller => 'news', :action => 'new', :project_id => @project },
  3. :html => { :id => 'news-form' } do |f| %>
  4. <%= render :partial => 'news/form', :locals => { :f => f } %>
  5. <%= submit_tag l(:button_create) %>
  6. <%= link_to_remote l(:label_preview),
  7. { :url => { :controller => 'news', :action => 'preview', :project_id => @project },
  8. :method => 'post',
  9. :update => 'preview',
  10. :with => "Form.serialize('news-form')"
  11. }, :accesskey => accesskey(:preview) %>
  12. <% end %>
  13. <div id="preview" class="wiki"></div>