%-
@title = "Editing #{@page.name.escapeHTML}".html_safe
@content_width = 720
@hide_navigation = true
-%>
<%= render(:file => "#{@web.markup}_help") -%>
<%= render(:file => 'wiki_words_help') unless @web.brackets_only? -%>
<% form_tag({ :action => 'save', :web => @web.address, :id => @page.name },
{ 'id' => 'editForm', 'method' => 'post', 'onsubmit' => 'cleanAuthorName()',
'accept-charset' => 'utf-8' }) do %>
<% if @page_name != 'HomePage' -%>
<%= check_box_tag :alter_title, value = "1", checked=false,
'onchange' => "toggleVisibility();" %>
<%= text_field_tag :new_name, h(@page.name.purify),
:onblur => "addRedirect();" %>
<% else -%>
<%= hidden_field_tag 'new_name', @page_name %>
<% end%>
as
<%= text_field_tag :author, h(@author.purify),
:onfocus => "this.value == 'AnonymousCoward' ? this.value = '' : true;",
:onblur => "this.value == '' ? this.value = 'AnonymousCoward' : true" %>
|
<%= link_to('Cancel', {:web => @web.address, :action => 'cancel_edit', :id => @page.name},
{:accesskey => 'c'}) %>
(unlocks page)
<%- end -%>