Mercurial > hg > soundsoftware-site
annotate app/views/news/new.rhtml @ 150:857ac9ccf613 luisf
Merge from branch "live"
author | Chris Cannam |
---|---|
date | Mon, 24 Jan 2011 14:18:00 +0000 |
parents | 94944d00e43c |
children |
rev | line source |
---|---|
Chris@0 | 1 <h2><%=l(:label_news_new)%></h2> |
Chris@0 | 2 |
chris@37 | 3 <% labelled_tabular_form_for :news, @news, :url => project_news_index_path(@project), |
Chris@0 | 4 :html => { :id => 'news-form' } do |f| %> |
Chris@0 | 5 <%= render :partial => 'news/form', :locals => { :f => f } %> |
Chris@0 | 6 <%= submit_tag l(:button_create) %> |
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> |