<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2015 the OpenProject Foundation (OPF) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: Copyright (C) 2006-2013 Jean-Philippe Lang Copyright (C) 2010-2013 the ChiliProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 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)) %> <%= toolbar title: l(:wiki_menu_item_for, :title => @page_title) %> <%= form_for @wiki_menu_item, :html => {:id => 'wiki_menu_item_form', :class => 'menu-item-form', :method => :put}, :url => wiki_menu_item_path(@project, @page) do |form| %>

<%= form.label :name, l(:label_menu_item_name), {:id => 'item-name'} %> <% if @wiki_menu_item.name.nil? %> <%= form.text_field :name, :size => 20, :value => @page_title.gsub("_"," ") %> <% else %> <%= form.text_field :name, :size => 20 %> <% end %>


<%=l(:menu_item_setting)%>

<%= form.radio_button 'setting', :no_item %> <%= form.label 'setting_no_item', l(:label_wiki_dont_show_menu_item) %>

<%= form.radio_button 'setting', :main_item %> <%= form.label 'setting_main_item', l(:label_wiki_show_menu_item) %>

<% disabled = @parent_menu_item_options.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(@parent_menu_item_options, @selected_parent_menu_item_id), :disabled => disabled %>

<%= styled_button_tag l(:button_save), :method => :post, class: '-highlight -with-icon icon-yes' %> <%= link_to l(:button_cancel), {:controller => '/wiki', :action => 'show', :project_id => @project, :id => @page_title}, class: 'button'%>

<% end %>