summaryrefslogtreecommitdiffstats
path: root/app/views/wiki/rename.html.erb
blob: e5a6d726b675043873dce48f41c492261d5771ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<%= wiki_page_breadcrumb(@page) %>

<h2><%=h @original_title %></h2>

<%= error_messages_for 'page' %>

<% labelled_form_for :wiki_page, @page, :url => { :action => 'rename' } do |f| %>
<div class="box tabular">
<p><%= f.text_field :title, :required => true, :size => 100  %></p>
<p><%= f.check_box :redirect_existing_links %></p>
<p><%= f.select :parent_id, "<option value=''></option>" + wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - @page.self_and_descendants, @page.parent), :label => :field_parent_title %></p>
</div>
<%= submit_tag l(:button_rename) %>
<% end %>