Chris@0:
<%=l(:label_news)%>
Chris@0:
chris@37: <% labelled_tabular_form_for :news, @news, :url => news_path(@news),
chris@22: :html => { :id => 'news-form', :method => :put } do |f| %>
Chris@0: <%= render :partial => 'form', :locals => { :f => f } %>
Chris@0: <%= submit_tag l(:button_save) %>
Chris@0: <%= link_to_remote l(:label_preview),
chris@37: { :url => preview_news_path(:project_id => @project),
chris@37: :method => 'get',
Chris@0: :update => 'preview',
Chris@0: :with => "Form.serialize('news-form')"
Chris@0: }, :accesskey => accesskey(:preview) %>
Chris@0: <% end %>
Chris@0:
chris@22:
chris@22: <% content_for :header_tags do %>
chris@22: <%= stylesheet_link_tag 'scm' %>
chris@22: <% end %>