annotate app/views/news/edit.rhtml @ 1452:d6b9fd02bb89 feature_36_js_refactoring

Deprecated develoment branch.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 11 Oct 2013 17:01:24 +0100
parents 94944d00e43c
children
rev   line source
Chris@0 1 <h2><%=l(:label_news)%></h2>
Chris@0 2
chris@37 3 <% labelled_tabular_form_for :news, @news, :url => news_path(@news),
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@37 8 { :url => preview_news_path(:project_id => @project),
chris@37 9 :method => 'get',
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 %>