summaryrefslogtreecommitdiffstats
path: root/app/views/wiki
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-17 11:44:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-17 11:44:04 +0000
commitdcce70095ba1241e209a5a91611480533688b486 (patch)
tree066dd5191997f62902ff8dd96615c3cd8b06bec4 /app/views/wiki
parentc8066879dba81f5ff5702f7c877d70e93c748431 (diff)
downloadredmine-dcce70095ba1241e209a5a91611480533688b486.tar.gz
redmine-dcce70095ba1241e209a5a91611480533688b486.zip
Option to set parent automatically for new wiki pages (#3108).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8255 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r--app/views/wiki/edit.html.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb
index d7c97c177..8c20e264d 100644
--- a/app/views/wiki/edit.html.erb
+++ b/app/views/wiki/edit.html.erb
@@ -13,6 +13,10 @@
<div class="box tabular">
<%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %>
+<% if @page.new_record? && @page.parent %>
+<p><label><%= check_box_tag 'page[parent_id]', @page.parent.id %> <%= l(:field_parent_title) %></label> <%=h @page.parent.pretty_title %></p>
+<% end %>
+
<p><label><%= l(:field_comments) %></label><%= f.text_field :comments, :size => 120 %></p>
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
</div>