To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / news / .svn / text-base / edit.rhtml.svn-base @ 441:cbce1fd3b1b7

History | View | Annotate | Download (733 Bytes)

1
<h2><%=l(:label_news)%></h2>
2

    
3
<% labelled_tabular_form_for :news, @news, :url => news_path(@news),
4
                                           :html => { :id => 'news-form', :method => :put } do |f| %>
5
<%= render :partial => 'form', :locals => { :f => f } %>
6
<%= submit_tag l(:button_save) %>
7
<%= link_to_remote l(:label_preview), 
8
                   { :url => preview_news_path(:project_id => @project),
9
                     :method => 'get',
10
                     :update => 'preview',
11
                     :with => "Form.serialize('news-form')"
12
                   }, :accesskey => accesskey(:preview) %>
13
<% end %>
14
<div id="preview" class="wiki"></div>
15

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