diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-30 09:20:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-09-30 09:20:35 +0000 |
commit | d3f044c734a1e0eb3f514251b2e9510a7942a9d6 (patch) | |
tree | b38cc1bf18fcce20e0bc57131079b43c25dec5eb /app | |
parent | 6e4deb6c10668b5432fc6990fa7e08a22208c18f (diff) | |
download | redmine-d3f044c734a1e0eb3f514251b2e9510a7942a9d6.tar.gz redmine-d3f044c734a1e0eb3f514251b2e9510a7942a9d6.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/views/wiki/_new_modal.html.erb | 10 |
1 files changed, 9 insertions, 1 deletions
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 @@ <h3 class="title"><%=l(:label_wiki_page_new)%></h3> <%= 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 %> <em class="info"><%= l(:text_unallowed_characters) %>: , . / ? ; : |</em> </p> + <p> + <% if params[:parent].present? %> + <label class="inline"> + <%= check_box_tag 'parent', params[:parent], true %> + <%= l(:field_parent_title) %>: <%= params[:parent] %> + </label> + <% end %> + </p> </div> <p class="buttons"> |