2008-02-03 17:38:04 +03:00
|
|
|
<h2><%=l(:label_news_new)%></h2>
|
|
|
|
|
2010-09-27 20:51:12 +04:00
|
|
|
<% labelled_tabular_form_for :news, @news, :url => project_news_index_path(@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) %>
|
2011-05-30 22:52:25 +04:00
|
|
|
<%= link_to_remote l(:label_preview),
|
2010-09-27 20:51:12 +04:00
|
|
|
{ :url => preview_news_path(:project_id => @project),
|
2010-09-24 20:26:46 +04:00
|
|
|
:method => 'get',
|
2008-02-03 17:38:04 +03:00
|
|
|
:update => 'preview',
|
|
|
|
:with => "Form.serialize('news-form')"
|
|
|
|
}, :accesskey => accesskey(:preview) %>
|
|
|
|
<% end %>
|
|
|
|
<div id="preview" class="wiki"></div>
|