2009-04-21 16:19:56 +04:00
|
|
|
<h2><%=h @page.pretty_title %></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2010-10-29 01:25:38 +04:00
|
|
|
<% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
|
2010-11-05 13:46:03 +03:00
|
|
|
<%= f.hidden_field :lock_version %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= error_messages_for 'content' %>
|
2008-03-05 14:14:35 +03:00
|
|
|
|
2007-10-05 22:05:41 +04:00
|
|
|
<p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
|
2007-04-25 19:06:20 +04:00
|
|
|
<p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p>
|
2010-02-28 12:43:13 +03:00
|
|
|
<p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p>
|
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><%= submit_tag l(:button_save) %>
|
2011-05-30 22:52:25 +04:00
|
|
|
<%= link_to_remote l(:label_preview),
|
2010-10-27 20:27:06 +04:00
|
|
|
{ :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title },
|
2010-10-29 01:25:38 +04:00
|
|
|
:method => :post,
|
2007-03-12 20:59:02 +03:00
|
|
|
:update => 'preview',
|
2007-09-07 01:56:40 +04:00
|
|
|
:with => "Form.serialize('wiki_form')",
|
2008-02-11 23:45:46 +03:00
|
|
|
:complete => "Element.scrollTo('preview')"
|
2007-10-05 22:05:41 +04:00
|
|
|
}, :accesskey => accesskey(:preview) %></p>
|
2007-08-25 18:51:06 +04:00
|
|
|
<%= wikitoolbar_for 'content_text' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
|
2007-08-25 18:51:06 +04:00
|
|
|
<div id="preview" class="wiki"></div>
|
2007-09-06 21:06:07 +04:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag 'scm' %>
|
2011-02-14 05:16:31 +03:00
|
|
|
<%= robot_exclusion_tag %>
|
2007-09-06 21:06:07 +04:00
|
|
|
<% end %>
|
2007-09-08 00:52:45 +04:00
|
|
|
|
2011-07-30 23:51:06 +04:00
|
|
|
<% html_title h(@page.pretty_title) %>
|