Find orphan pages.
[cocanwiki.git] / templates / edit.html
index 511319d..98edc7d 100644 (file)
 
 <h1>::title_html:: [edit]</h1>
 
-<form method="post" action="edit">
+<form method="post" action="" name="f">
 <input type="hidden" name="id" value="::id::"/>
+<input type="hidden" name="pt_type" value="::pt_type::"/>
+<input type="hidden" name="pt_value" value="::pt_value_html_tag::"/>
 
 <p>
 Description:
@@ -29,7 +31,6 @@ Redirect to (if given, page contents are ignored):
 
 ::if(has_errors)::
 <div id="errors">
-<p><strong>Errors:</strong></p>
 <ul>
 ::table(errors)::<li>::error_html::</li>
 ::end::</ul>
@@ -59,11 +60,13 @@ Redirect to (if given, page contents are ignored):
 <a href="/_static/markup.html" target="_blank" class="help_link">(Editing&nbsp;help)</a>
 ::end::
 </div>
-<input class="heading" name="sectionname_::ordering::" value="::sectionname_html_tag::" size="40"/>
-<textarea id="content_::ordering::" name="content_::ordering::" rows="12" cols="80" onkeypress="update_preview ('content_::ordering::', 'preview_::ordering::')">::content_html_textarea::</textarea>
+<input class="heading" name="sectionname_::ordering::" value="::sectionname_html_tag::" size="40"/><br/>
+<div class="edit_buttons" id="edit_buttons_::ordering::"></div>
+<textarea id="content_::ordering::" name="content_::ordering::" rows="14" cols="80" onkeypress="update_preview ('content_::ordering::', 'preview_::ordering::')">::content_html_textarea::</textarea>
 <div class="preview" id="preview_::ordering::"><noscript>(If you had Javascript, you would see a preview of your edits here)</noscript></div>
 <script type="text/javascript"><!--
 update_preview_now ('content_::ordering::', 'preview_::ordering::');
+init_edit_buttons ('edit_buttons_::ordering::', 'content_::ordering::', 'preview_::ordering::');
 //--></script>
 <abbr class="css_id" title="Assign a stylesheet ID to this block of text to enable further styling">CSS id</abbr>: <input class="css_id" name="divname_::ordering::" value="::divname_html_tag::" size="8"/>
 
@@ -74,11 +77,6 @@ update_preview_now ('content_::ordering::', 'preview_::ordering::');
 
 </form>
 
-<hr/>
-
-<ul id="footer" class="menu">
-<li> <a href="/copyright">Copyright &copy; 2004</a> </li>
-</ul>
-
+::include(footer.html)::
 </body>
 </html>
\ No newline at end of file