%= 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 %>