summaryrefslogtreecommitdiffstats
path: root/app/views/news/edit.rhtml
blob: 704820089e15018d15b053023955c668f89cda55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<h2><%=l(:label_news)%></h2>

<% labelled_tabular_form_for :news, @news, :url => { :action => "update" },
                                           :html => { :id => 'news-form', :method => :put } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
<%= link_to_remote l(:label_preview), 
                   { :url => { :controller => 'previews', :action => 'news', :project_id => @project },
                     :method => 'get',
                     :update => 'preview',
                     :with => "Form.serialize('news-form')"
                   }, :accesskey => accesskey(:preview) %>
<% end %>
<div id="preview" class="wiki"></div>

<% content_for :header_tags do %>
  <%= stylesheet_link_tag 'scm' %>
<% end %>