comparison app/views/wiki/.svn/text-base/edit.rhtml.svn-base @ 37:94944d00e43c

* Update to SVN trunk rev 4411
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 19 Nov 2010 13:24:41 +0000
parents 513646585e45
children cbce1fd3b1b7
comparison
equal deleted inserted replaced
22:40f7cfd4df19 37:94944d00e43c
1 <h2><%=h @page.pretty_title %></h2> 1 <h2><%=h @page.pretty_title %></h2>
2 2
3 <% form_for :content, @content, :url => {:action => 'edit', :page => @page.title}, :html => {:multipart => true, :id => 'wiki_form'} do |f| %> 3 <% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
4 <%= f.hidden_field :version %> 4 <%= f.hidden_field :version %>
5 <%= error_messages_for 'content' %> 5 <%= error_messages_for 'content' %>
6 6
7 <p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p> 7 <p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
8 <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p> 8 <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p>
9 <p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p> 9 <p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p>
10 10
11 <p><%= submit_tag l(:button_save) %> 11 <p><%= submit_tag l(:button_save) %>
12 <%= link_to_remote l(:label_preview), 12 <%= link_to_remote l(:label_preview),
13 { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title }, 13 { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title },
14 :method => 'post', 14 :method => :post,
15 :update => 'preview', 15 :update => 'preview',
16 :with => "Form.serialize('wiki_form')", 16 :with => "Form.serialize('wiki_form')",
17 :complete => "Element.scrollTo('preview')" 17 :complete => "Element.scrollTo('preview')"
18 }, :accesskey => accesskey(:preview) %></p> 18 }, :accesskey => accesskey(:preview) %></p>
19 <%= wikitoolbar_for 'content_text' %> 19 <%= wikitoolbar_for 'content_text' %>