Mercurial > hg > soundsoftware-site
view app/views/wiki/rename.rhtml @ 330:f1a12c3b4587 cannam-pre-20110113-merge
We don't actually want text formatting in our short summary, but we don't want wiki metacharacters either. So apply wiki formatting and then strip out the tags in a very naive fashion.
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 29 Mar 2011 18:03:55 +0100 |
parents | 94944d00e43c |
children |
line wrap: on
line source
<h2><%= l(:button_rename) %>: <%= @original_title %></h2> <%= error_messages_for 'page' %> <% labelled_tabular_form_for :wiki_page, @page, :url => { :action => 'rename' } do |f| %> <div class="box"> <p><%= f.text_field :title, :required => true, :size => 100 %></p> <p><%= f.check_box :redirect_existing_links %></p> <p><%= f.select :parent_id, "<option value=''></option>" + wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - @page.self_and_descendants, @page.parent), :label => :field_parent_title %></p> </div> <%= submit_tag l(:button_rename) %> <% end %>