2008-02-03 17:38:04 +03:00
|
|
|
<h2><%=l(:label_news_new)%></h2>
|
|
|
|
|
2010-09-20 19:13:48 +04:00
|
|
|
<% labelled_tabular_form_for :news, @news, :url => { :controller => 'news', :action => 'create', :project_id => @project },
|
2008-02-03 17:38:04 +03:00
|
|
|
:html => { :id => 'news-form' } do |f| %>
|
|
|
|
<%= render :partial => 'news/form', :locals => { :f => f } %>
|
|
|
|
<%= submit_tag l(:button_create) %>
|
|
|
|
<%= link_to_remote l(:label_preview),
|
2008-07-19 11:29:05 +04:00
|
|
|
{ :url => { :controller => 'news', :action => 'preview', :project_id => @project },
|
2008-02-03 17:38:04 +03:00
|
|
|
:method => 'post',
|
|
|
|
:update => 'preview',
|
|
|
|
:with => "Form.serialize('news-form')"
|
|
|
|
}, :accesskey => accesskey(:preview) %>
|
|
|
|
<% end %>
|
|
|
|
<div id="preview" class="wiki"></div>
|