+csv dep for PG'OCaml.
[cocanwiki.git] / templates / edit.html
index 8aa5a14..99b3ddc 100644 (file)
@@ -3,7 +3,7 @@
 <head>
 <title>::title_html:: [edit]</title>
 <meta name="robots" content="noindex,nofollow"/>
-<meta name="author" content="http://www.merjis.com/" />
+<meta name="author" content="http://merjis.com/" />
 <link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
 <link rel="stylesheet" href="/_css/editor.css" type="text/css" title="Standard"/>
 <script src="/_js/editor.js" type="text/javascript"></script>
 
 <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:
+<table class="left_table">
+<tr>
+<th>Description:</th>
+<td>
 <input name="description" value="::description_html_tag::" size="60"/>
-</p>
+</td>
+</tr>
+
+<tr>
+<th>Keywords:</th>
+<td>
+<input name="keywords" value="::keywords_html_tag::" size="60"/>
+</td>
+</tr>
 
-<p>
-Redirect to (if given, page contents are ignored):
+<tr>
+<th>
+Redirect to:<br/>
+<small>(if given, page contents are ignored)</small>
+</th>
+<td>
 <select name="redirect">
 <option value="">None (ordinary page)</option>
-::table(redirects)::<option value="::url_html_tag::" ::if(selected)::selected="selected"::end::>::title_html:: (<code>/::url_html::</code>)</option>::end::
+<option value="index">Home page</option>
+::table(redirects)::<option value="::url_html_tag::"::if(selected):: selected="selected"::end::>::title_html::::if(is_index):: (<code>/::url_html::</code>)::end::</option>::end::
 </select>
-</p>
+</td>
+</tr>
+
+<tr>
+<th> ROBOTS NOODP:<br/>
+<small>(See
+<a href="http://sitemaps.blogspot.com/2006/07/more-control-over-page-snippets.html">Google sitemaps on page snippets</a>)</small>
+</th>
+<td>
+<input type="radio" name="noodp" value="" id="noodp_null" ::if(noodp_null)::checked="checked"::end::/> <label for="noodp_null">Inherit default from Sitewide Settings</label> <br/>
+<input type="radio" name="noodp" value="t" id="noodp_true" ::if(noodp_true)::checked="checked"::end::/> <label for="noodp_true">Set ROBOTS NOODP header</label> <br/>
+<input type="radio" name="noodp" value="f" id="noodp_false" ::if(noodp_false)::checked="checked"::end::/> <label for="noodp_false">No ROBOTS NOODP header</label>
+</td>
+</tr>
+
+</table>
 
 ::if(has_errors)::
 <div id="errors">
-<p><strong>Errors:</strong></p>
 <ul>
 ::table(errors)::<li>::error_html::</li>
 ::end::</ul>
@@ -59,13 +90,17 @@ 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="content_changed ('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::');
+synch_update ('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"/>
+<abbr class="css_id" title="Assign a stylesheet class to this block of text to enable further styling">CSS class</abbr>: <input class="css_class" name="divclass_::ordering::" value="::divclass_html_tag::" size="8"/>
+<abbr class="js_onclick" title="Assign a destination URL on the site where clicks in this whole region go to. (Requires Javascript)">Javascript onclick</abbr>: <input class="js_onclick" name="jsgo_::ordering::" value="::jsgo_html_tag::" size="16"/>
 
 <p class="insert">
 <input class="insert" type="submit" name="action_insert_::ordering::" value="Insert new section here"/>
@@ -74,14 +109,6 @@ update_preview_now ('content_::ordering::', 'preview_::ordering::');
 
 </form>
 
-<div id="footer_div">
-<hr/>
-
-<ul id="footer" class="menu">
-<li class="first"> <a href="/copyright">Copyright &copy; ::year::</a> </li>
-<li> Powered by <a href="http://sandbox.merjis.com/">::cocanwiki_package_html:: ::cocanwiki_version_html::</a> </li>
-</ul>
-</div>
-
+::include(footer.html)::
 </body>
 </html>
\ No newline at end of file