annotate app/views/news/.svn/text-base/edit.rhtml.svn-base @ 22:40f7cfd4df19

* Update to SVN trunk rev 4173
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 24 Sep 2010 14:06:04 +0100
parents 513646585e45
children 94944d00e43c
rev   line source
Chris@0 1 <h2><%=l(:label_news)%></h2>
Chris@0 2
chris@22 3 <% labelled_tabular_form_for :news, @news, :url => { :action => "update" },
chris@22 4 :html => { :id => 'news-form', :method => :put } do |f| %>
Chris@0 5 <%= render :partial => 'form', :locals => { :f => f } %>
Chris@0 6 <%= submit_tag l(:button_save) %>
Chris@0 7 <%= link_to_remote l(:label_preview),
Chris@0 8 { :url => { :controller => 'news', :action => 'preview', :project_id => @project },
Chris@0 9 :method => 'post',
Chris@0 10 :update => 'preview',
Chris@0 11 :with => "Form.serialize('news-form')"
Chris@0 12 }, :accesskey => accesskey(:preview) %>
Chris@0 13 <% end %>
Chris@0 14 <div id="preview" class="wiki"></div>
chris@22 15
chris@22 16 <% content_for :header_tags do %>
chris@22 17 <%= stylesheet_link_tag 'scm' %>
chris@22 18 <% end %>