view .svn/pristine/22/2215da5ea32efbcca552e4718d4f9896046cbfa7.svn-base @ 1539:22d57b0e0a77 live

OK, this script works now, but it should be using the API
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 21 May 2015 17:31:06 +0100
parents 038ba2d95de8
children
line wrap: on
line source
<%= wiki_page_breadcrumb(@page) %>

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

<%= error_messages_for 'page' %>

<%= labelled_form_for :wiki_page, @page,
                     :url => { :action => 'rename' },
                     :html => { :method => :post } 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,
                content_tag('option', '', :value => '') + 
                  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 %>