Sha256: a0df616edf93247085d970f18dbef9c7c17fc5a8dd363a4c64f98c5b44b22a44
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
Contents
<% @title = "Editing #{@page.plain_name}" @content_width = 720 @hide_navigation = true %> <%= sub_template "top" %> <%= render_markup_help %> <form action="../bliki_save/<%= @page.name %>" method="post" onSubmit="return validateAuthorName();"> <p> <textarea name="content" style="width: 450px; height: 430px"><%= @page.content %></textarea> </p> <p> <input type="submit" value="Update"> as <input type="text" name="author" id="authorName" value="<%= @author %>" onClick="this.value == 'AnonymousCoward' ? this.value = '' : true"> | <a href="../cancel_bliki_edit/<%= @page.name %>">Cancel</a> <small>(unlocks entry)</small> </p> </form> <script language="JavaScript1.2"> function validateAuthorName() { if (/^([A-Z][a-z]+[A-Z]\w+)$/.test(document.getElementById('authorName').value)) { return true; } else { alert('You wrote "' + document.getElementById('authorName').value + '" as your name, but it needs to be a wiki word. Try concating first name and last name, like DavidHeinemeierHansson.'); return false; } } </script> <%= sub_template "bottom" %>
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
Pimki-1.0.092 | app/views/wiki/bliki_edit.rhtml |
Pimki-1.1.092 | app/views/wiki/bliki_edit.rhtml |
Pimki-1.2.092 | app/views/wiki/bliki_edit.rhtml |
Pimki-1.3.092 | app/views/wiki/bliki_edit.rhtml |