mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-29 03:39:38 +00:00
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
This commit is contained in:
parent
6e4deb6c10
commit
d3f044c734
@ -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">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user