app/views/wiki/edit.rhtml in Pimki-1.4.092 vs app/views/wiki/edit.rhtml in Pimki-1.5.092

- old
+ new

@@ -1,17 +1,18 @@ <% @title = "Editing #{@page.plain_name}" - @content_width = 800 + @content_width = 810 @hide_navigation = true - @style_additions = "#Container, #Content {padding-left:100px;}" + @style_additions = "#Content, #Container {padding-left:100px;}" %> <%= sub_template "top" %> <%= "<p style='color:red'>Please correct the error that caused this error in rendering:<br/><small>#{@params["msg"]}</small></p>" if @params["msg"] %> <%= render_markup_help %> +<div id='main'> <form style="float:right" id="editForm" action="../save/<%= @page.name %>" method="post" onSubmit="cleanAuthorName();"> <p> <textarea name="content" style="width: 550px; height: 430px"><%= @page.content %></textarea> </p> <p style="font-size: smaller;">This change is a... @@ -29,10 +30,10 @@ <input type="text" name="author" id="authorName" value="<%= @author %>" onClick="this.value == 'AnonymousCoward' ? this.value = '' : true"> | <a href="../cancel_edit/<%= @page.name %>">Cancel</a> <small>(unlocks page)</small> </p> </form> - +</div> <script language="JavaScript1.2"> function cleanAuthorName() { if (document.getElementById('authorName').value == "") { document.getElementById('authorName').value = 'AnonymousCoward'; } \ No newline at end of file