From d3f044c734a1e0eb3f514251b2e9510a7942a9d6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 30 Sep 2018 09:20:35 +0000 Subject: [PATCH] Add a checkbox to create the wiki page with or without parent (#26043). git-svn-id: http://svn.redmine.org/redmine/trunk@17538 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/wiki/_new_modal.html.erb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/views/wiki/_new_modal.html.erb b/app/views/wiki/_new_modal.html.erb index 8c9d13a75..2f9dcdb7f 100644 --- a/app/views/wiki/_new_modal.html.erb +++ b/app/views/wiki/_new_modal.html.erb @@ -1,7 +1,7 @@

<%=l(:label_wiki_page_new)%>

<%= labelled_form_for :page, @page, - :url => new_project_wiki_page_path(@project, :parent => params[:parent]), + :url => new_project_wiki_page_path(@project), :method => 'post', :remote => true do |f| %> @@ -12,6 +12,14 @@ <%= f.text_field :title, :name => 'title', :size => 60, :required => true %> <%= l(:text_unallowed_characters) %>: , . / ? ; : |

+

+ <% if params[:parent].present? %> + + <% end %> +

-- 2.39.5