2011-07-04 23:56:38 +04:00
|
|
|
<%= wiki_page_breadcrumb(@page) %>
|
|
|
|
|
2012-01-03 16:09:34 +04:00
|
|
|
<h2><%= h @original_title %></h2>
|
2007-09-09 21:05:38 +04:00
|
|
|
|
|
|
|
<%= error_messages_for 'page' %>
|
|
|
|
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= labelled_form_for :wiki_page, @page,
|
2012-01-03 16:08:54 +04:00
|
|
|
:url => { :action => 'rename' },
|
|
|
|
:html => { :method => :post } do |f| %>
|
2011-12-09 22:15:55 +04:00
|
|
|
<div class="box tabular">
|
2008-07-26 15:46:24 +04:00
|
|
|
<p><%= f.text_field :title, :required => true, :size => 100 %></p>
|
2007-09-09 21:05:38 +04:00
|
|
|
<p><%= f.check_box :redirect_existing_links %></p>
|
2012-01-03 16:09:34 +04:00
|
|
|
<p><%= f.select :parent_id,
|
2012-04-25 21:17:49 +04:00
|
|
|
content_tag('option', '', :value => '') +
|
2012-01-03 16:09:34 +04:00
|
|
|
wiki_page_options_for_select(
|
2014-01-10 11:46:23 +04:00
|
|
|
@wiki.pages.includes(:parent).all - @page.self_and_descendants,
|
2012-01-03 16:09:34 +04:00
|
|
|
@page.parent),
|
|
|
|
:label => :field_parent_title %></p>
|
2007-09-09 21:05:38 +04:00
|
|
|
</div>
|
|
|
|
<%= submit_tag l(:button_rename) %>
|
|
|
|
<% end %>
|