2006-07-29 23:54:22 +04:00
|
|
|
<h2><%=l(:label_news)%></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2010-09-21 19:20:37 +04:00
|
|
|
<% labelled_tabular_form_for :news, @news, :url => { :action => "update" },
|
|
|
|
:html => { :id => 'news-form', :method => :put } do |f| %>
|
2006-09-02 17:33:23 +04:00
|
|
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
|
|
|
<%= submit_tag l(:button_save) %>
|
2008-02-03 17:38:04 +03:00
|
|
|
<%= 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>
|
2010-09-20 06:55:37 +04:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag 'scm' %>
|
|
|
|
<% end %>
|