kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.4 KiB
58 lines
2.4 KiB
<%#-- copyright
|
|
OpenProject is a project management system.
|
|
|
|
Copyright (C) 2012-2013 the OpenProject Team
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License version 3.
|
|
|
|
See doc/COPYRIGHT.rdoc for more details.
|
|
|
|
++#%>
|
|
|
|
<%= error_messages_for "wiki_menu_item", :object => @wiki_menu_item %>
|
|
|
|
<% breadcrumb_paths(*@page.ancestors.reverse.collect {|parent| link_to h(parent.pretty_title), {:id => parent.title, :project_id => parent.project}}.push(@page.title)) %>
|
|
|
|
<h2><%= l(:wiki_menu_item_for, :title => @page_title) %></h2>
|
|
<%= form_for @wiki_menu_item, :html => {:id => 'wiki_menu_item_form', :class => 'wiki_menu_item_form', :method => :put}, :url => wiki_menu_item_path(@project, @page_title) do |form| %>
|
|
<p class="name_of_item">
|
|
<%= form.label :name, l(:label_menu_item_name), {:id => 'name_of_item'} %>
|
|
<% if @wiki_menu_item.name.nil? %>
|
|
<%= form.text_field :name, :size => 20, :value => @page_title.gsub("_"," ") %>
|
|
<% else %>
|
|
<%= form.text_field :name, :size => 20 %>
|
|
<% end %>
|
|
</p>
|
|
</br>
|
|
<div style="clear: both;"></div>
|
|
<fieldset class="box" id="wiki_menu_item_setting"><legend><%=l(:wiki_menu_item_setting)%></legend>
|
|
<p>
|
|
<%= form.radio_button 'setting', :no_item %>
|
|
<%= form.label 'setting_no_item', l(:label_wiki_dont_show_menu_item) %>
|
|
</p>
|
|
<p class="main_item">
|
|
<%= form.radio_button 'setting', :main_item %>
|
|
<%= form.label 'setting_main_item', l(:label_wiki_show_menu_item) %>
|
|
</p>
|
|
<p class="wiki_menu_item_optional_links">
|
|
<%= form.check_box 'new_wiki_page' %>
|
|
<%= form.label 'new_wiki_page', l(:label_wiki_show_new_page_link) %>
|
|
|
|
</br>
|
|
|
|
<%= form.check_box 'index_page' %>
|
|
<%= form.label 'index_page', l(:label_wiki_show_index_page_link) %>
|
|
</p>
|
|
<p>
|
|
<% disabled = @possible_parent_menu_items.empty? %>
|
|
<%= form.radio_button 'setting', :sub_item, :disabled => disabled %>
|
|
<%= form.label 'setting_sub_item', l(:label_wiki_show_submenu_item), {:id => 'with-select'} %>
|
|
<%= select_tag "parent_wiki_menu_item", options_for_select(@possible_parent_menu_items), :disabled => disabled %>
|
|
</p>
|
|
</fieldset>
|
|
<p>
|
|
<%= submit_tag l(:button_save), :method => :post %>
|
|
<%= link_to l(:button_cancel), {:controller => '/wiki', :action => 'show', :project_id => @project, :id => @page_title} %>
|
|
</p>
|
|
<% end %>
|
|
|