mirror of
https://github.com/redmine/redmine.git
synced 2024-08-27 17:54:48 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1677 e93f8b46-1217-0410-a6f0-8f06a7374b81
15 lines
730 B
Plaintext
15 lines
730 B
Plaintext
<h2><%=l(:label_news_new)%></h2>
|
|
|
|
<% labelled_tabular_form_for :news, @news, :url => { :controller => 'news', :action => 'new', :project_id => @project },
|
|
:html => { :id => 'news-form' } do |f| %>
|
|
<%= render :partial => 'news/form', :locals => { :f => f } %>
|
|
<%= submit_tag l(:button_create) %>
|
|
<%= link_to_remote l(:label_preview),
|
|
{ :url => { :controller => 'news', :action => 'preview', :project_id => @project },
|
|
:method => 'post',
|
|
:update => 'preview',
|
|
:with => "Form.serialize('news-form')"
|
|
}, :accesskey => accesskey(:preview) %>
|
|
<% end %>
|
|
<div id="preview" class="wiki"></div>
|