2007-03-12 20:59:02 +03:00
|
|
|
<h2><%= @page.pretty_title %></h2>
|
|
|
|
|
|
|
|
<% form_for :content, @content, :url => {:action => 'edit', :page => @page.title}, :html => {:id => 'wiki_form'} do |f| %>
|
2007-05-26 21:22:27 +04:00
|
|
|
<%= f.hidden_field :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>
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><%= submit_tag l(:button_save) %>
|
|
|
|
<%= link_to_remote l(:label_preview),
|
2007-04-04 02:24:59 +04:00
|
|
|
{ :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title },
|
2007-08-25 18:51:06 +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' %>
|
|
|
|
<% end %>
|
2007-09-08 00:52:45 +04:00
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title @page.pretty_title %>
|