To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / wiki / edit.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (1.46 KB)

1 909:cbb26bc654de Chris
<%= wiki_page_breadcrumb(@page) %>
2
3 0:513646585e45 Chris
<h2><%=h @page.pretty_title %></h2>
4
5 37:94944d00e43c chris
<% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
6 0:513646585e45 Chris
<%= f.hidden_field :version %>
7 909:cbb26bc654de Chris
<% if @section %>
8
<%= hidden_field_tag 'section', @section %>
9
<%= hidden_field_tag 'section_hash', @section_hash %>
10
<% end %>
11 0:513646585e45 Chris
<%= error_messages_for 'content' %>
12
13 909:cbb26bc654de Chris
<p><%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
14 0:513646585e45 Chris
<p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p>
15
<p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p>
16
17
<p><%= submit_tag l(:button_save) %>
18 909:cbb26bc654de Chris
   <%= link_to_remote l(:label_preview),
19 37:94944d00e43c chris
                       { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title },
20
                         :method => :post,
21 0:513646585e45 Chris
                         :update => 'preview',
22
                         :with => "Form.serialize('wiki_form')",
23
                         :complete => "Element.scrollTo('preview')"
24
                       }, :accesskey => accesskey(:preview) %></p>
25
<%= wikitoolbar_for 'content_text' %>
26
<% end %>
27
28
<div id="preview" class="wiki"></div>
29
30
<% content_for :header_tags do %>
31
  <%= stylesheet_link_tag 'scm' %>
32 441:cbce1fd3b1b7 Chris
  <%= robot_exclusion_tag %>
33 0:513646585e45 Chris
<% end %>
34
35
<% html_title @page.pretty_title %>