##// END OF EJS Templates
cleanup syntax of Relation#all at app/views/wiki/rename.html.erb...
Toshi MARUYAMA -
r12316:f7a1664399f4
parent child
Show More
@@ -1,21 +1,21
1 1 <%= wiki_page_breadcrumb(@page) %>
2 2
3 3 <h2><%= h @original_title %></h2>
4 4
5 5 <%= error_messages_for 'page' %>
6 6
7 7 <%= labelled_form_for :wiki_page, @page,
8 8 :url => { :action => 'rename' },
9 9 :html => { :method => :post } do |f| %>
10 10 <div class="box tabular">
11 11 <p><%= f.text_field :title, :required => true, :size => 100 %></p>
12 12 <p><%= f.check_box :redirect_existing_links %></p>
13 13 <p><%= f.select :parent_id,
14 14 content_tag('option', '', :value => '') +
15 15 wiki_page_options_for_select(
16 @wiki.pages.all(:include => :parent) - @page.self_and_descendants,
16 @wiki.pages.includes(:parent).all - @page.self_and_descendants,
17 17 @page.parent),
18 18 :label => :field_parent_title %></p>
19 19 </div>
20 20 <%= submit_tag l(:button_rename) %>
21 21 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now