Sha256: f129acb2e32b72103ed9f99bb782fad79bccde6619811fec7f1b5b95194b3cf8

Contents?: true

Size: 820 Bytes

Versions: 4

Compression:

Stored size: 820 Bytes

Contents

<% 
  @title = "Creating #{WikiWords.separate(CGI.unescape(@page_name))}"
  @content_width = 720
  @hide_navigation = true
%><%= sub_template "top" %>

<%= render_markup_help %>

<form action="../save/<%= @page_name %>" method="post" onSubmit="cleanAuthorName();">
<p>
    <textarea name="content" style="width: 450px; height: 430px"></textarea>
</p>
<p>
    <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

4 entries across 4 versions & 1 rubygems

Version Path
Pimki-1.0.092 app/views/wiki/new.rhtml
Pimki-1.1.092 app/views/wiki/new.rhtml
Pimki-1.2.092 app/views/wiki/new.rhtml
Pimki-1.3.092 app/views/wiki/new.rhtml