socialforge/app/views/newsold/new.html.erb

10 lines
439 B
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
<h2><%=l(:label_news_new)%></h2>
<%= labelled_form_for @news, :url => project_news_index_path(@project),
:html => { :id => 'news-form', :multipart => true } do |f| %>
<%= render :partial => 'news/form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>
<%= preview_link preview_news_path(:project_id => @project), 'news-form' %>
<% end %>
<div id="preview" class="wiki"></div>