##// END OF EJS Templates
Rails3: view: use explicit post method at wiki/rename.html.erb...
Toshi MARUYAMA -
r8363:27828590d1bd
parent child
Show More
@@ -1,14 +1,16
1 <%= wiki_page_breadcrumb(@page) %>
1 <%= wiki_page_breadcrumb(@page) %>
2
2
3 <h2><%=h @original_title %></h2>
3 <h2><%=h @original_title %></h2>
4
4
5 <%= error_messages_for 'page' %>
5 <%= error_messages_for 'page' %>
6
6
7 <% labelled_form_for :wiki_page, @page, :url => { :action => 'rename' } do |f| %>
7 <% labelled_form_for :wiki_page, @page,
8 :url => { :action => 'rename' },
9 :html => { :method => :post } do |f| %>
8 <div class="box tabular">
10 <div class="box tabular">
9 <p><%= f.text_field :title, :required => true, :size => 100 %></p>
11 <p><%= f.text_field :title, :required => true, :size => 100 %></p>
10 <p><%= f.check_box :redirect_existing_links %></p>
12 <p><%= f.check_box :redirect_existing_links %></p>
11 <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>
13 <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>
12 </div>
14 </div>
13 <%= submit_tag l(:button_rename) %>
15 <%= submit_tag l(:button_rename) %>
14 <% end %>
16 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now