Chris@909: <%= wiki_page_breadcrumb(@page) %> Chris@909: Chris@1115:

<%= h @page.pretty_title %>

Chris@0: Chris@1115: <%= form_for @content, :as => :content, Chris@1115: :url => {:action => 'update', :id => @page.title}, Chris@1115: :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %> Chris@0: <%= f.hidden_field :version %> Chris@909: <% if @section %> Chris@909: <%= hidden_field_tag 'section', @section %> Chris@909: <%= hidden_field_tag 'section_hash', @section_hash %> Chris@909: <% end %> Chris@0: <%= error_messages_for 'content' %> Chris@0: Chris@1115:
Chris@1115: <%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, Chris@1115: :class => 'wiki-edit', :accesskey => accesskey(:edit) %> Chris@1115: Chris@1115: <% if @page.safe_attribute_names.include?('parent_id') && @wiki.pages.any? %> Chris@1115: <%= fields_for @page do |fp| %> Chris@1115:

Chris@1115: Chris@1115: <%= fp.select :parent_id, Chris@1115: content_tag('option', '', :value => '') + Chris@1517: wiki_page_options_for_select( Chris@1517: @wiki.pages.includes(:parent).all - Chris@1115: @page.self_and_descendants, @page.parent) %> Chris@1115:

Chris@1115: <% end %> Chris@1115: <% end %> Chris@1115: Chris@1115:

<%= f.text_field :comments, :size => 120 %>

Chris@1115:

<%= render :partial => 'attachments/form' %>

Chris@1115:
Chris@0: Chris@0:

<%= submit_tag l(:button_save) %> Chris@1115: <%= preview_link({:controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, 'wiki_form') %>

Chris@0: <%= wikitoolbar_for 'content_text' %> Chris@0: <% end %> Chris@0: Chris@0:
Chris@0: Chris@0: <% content_for :header_tags do %> Chris@441: <%= robot_exclusion_tag %> Chris@0: <% end %> Chris@0: Chris@0: <% html_title @page.pretty_title %>