%#-- 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)) %>
<%= 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 %>
<%= submit_tag l(:button_save), :method => :post %> <%= link_to l(:button_cancel), {:controller => '/wiki', :action => 'show', :project_id => @project, :id => @page_title} %>
<% end %>