app/views/wiki/edit.rhtml in Pimki-1.3.092 vs app/views/wiki/edit.rhtml in Pimki-1.4.092
- old
+ new
@@ -1,22 +1,31 @@
<%
@title = "Editing #{@page.plain_name}"
- @content_width = 720
+ @content_width = 800
@hide_navigation = true
@style_additions = "#Container, #Content {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 %>
<form style="float:right" id="editForm" action="../save/<%= @page.name %>" method="post" onSubmit="cleanAuthorName();">
<p>
- <textarea name="content" style="width: 450px; height: 430px"><%= @page.content %></textarea>
+ <textarea name="content" style="width: 550px; height: 430px"><%= @page.content %></textarea>
</p>
+ <p style="font-size: smaller;">This change is a...
+ <input type="radio" name="edit_type" value="minor">Minor Edit</input>
+ <input type="radio" name="edit_type" value="major">Major Edit</input>
+ <input type="radio" name="edit_type" value="default" checked>Default</input>
+ <br />
+ Learn more on the concept of <a href='.' onClick="alert('The default behaviour when revising a page is of a \'Continous Edit\'.\nThis means that if the previous edit was done by the same author and less than 30 minutes ago, this edit is minor and only the latest version will be kept as the revision. Otherwise (different author, more than 30 minutes ago) this is a new revision of the page.\nThis default behaviour can be overriden by specifying a major/minor edit.');return false;">continous edit</a>.
+ </p>
<p>
+ <% if @web.check_pass_on_edit %>
+ <p>Please enter edit password: <input type="password" name="password" id="password"></p>
+ <% end %>
<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_edit/<%= @page.name %>">Cancel</a> <small>(unlocks page)</small>
</p>
\ No newline at end of file