Sha256: 215875f46e89993969262fab6b095672fe42ef5a84beca17241921edd3efb423

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

<% 
  @title = "Creating #{WikiWords.separate(CGI.unescape(@page_name))}"
  @content_width = 800
  @hide_navigation = true
  @hide_menu = true
  @style_additions = "#Container, #Content {padding-left:100px;}"
%>
<%= sub_template "top" %>

<%= render_markup_help %>

<form action="../save/<%= @page_name %>" method="post" onSubmit="cleanAuthorName();">
<p>
    <textarea name="content" style="width: 550px; height: 430px"></textarea>
</p>
<p>
    <% if @web.check_pass_on_edit %>
      Please enter edit password: <input type="password" name="password" id="password"><br />
    <% end %>
    <input type="submit" value="Create"> as 
    <input type="text" name="author" id="authorName" value="<%= @author %>" onClick="this.value == 'AnonymousCoward' ? this.value = '' : true">
</p>
</form>

<script language="JavaScript1.2">
function cleanAuthorName() {
  if (document.getElementById('authorName').value == "") {
    document.getElementById('authorName').value = 'AnonymousCoward';
  }
}
</script>

<%= sub_template "bottom" %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
Pimki-1.6.092 app/views/wiki/new.rhtml
Pimki-1.7.092 app/views/wiki/new.rhtml