Chris@1517: <%= wiki_page_breadcrumb(@page) %> Chris@1517: Chris@1517:

<%= h @page.pretty_title %>

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

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

Chris@1517: <% end %> Chris@1517: <% end %> Chris@1517: Chris@1517:

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

Chris@1517:

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

Chris@1517:
Chris@1517: Chris@1517:

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

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