Rearranged <div> and <form> tags to allow the search box to validate.
[cocanwiki.git] / templates / edit.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3 <head>
4 <title>::title_html:: [edit]</title>
5 <meta name="robots" content="noindex,nofollow"/>
6 <meta name="author" content="http://www.merjis.com/" />
7 <link rel="stylesheet" href="/_css/standard.css" type="text/css" title="Standard"/>
8 <link rel="stylesheet" href="/_css/editor.css" type="text/css" title="Standard"/>
9 <script src="/_js/editor.js" type="text/javascript"></script>
10 </head><body>
11
12 <h1>::title_html:: [edit]</h1>
13
14 <form method="post" action="" name="f">
15 <input type="hidden" name="id" value="::id::"/>
16 <input type="hidden" name="pt_type" value="::pt_type::"/>
17 <input type="hidden" name="pt_value" value="::pt_value_html_tag::"/>
18
19 <p>
20 Description:
21 <input name="description" value="::description_html_tag::" size="60"/>
22 </p>
23
24 <p>
25 Redirect to (if given, page contents are ignored):
26 <select name="redirect">
27 <option value="">None (ordinary page)</option>
28 ::table(redirects)::<option value="::url_html_tag::" ::if(selected)::selected="selected"::end::>::title_html:: (<code>/::url_html::</code>)</option>::end::
29 </select>
30 </p>
31
32 ::if(has_errors)::
33 <div id="errors">
34 <ul>
35 ::table(errors)::<li>::error_html::</li>
36 ::end::</ul>
37 </div>
38 ::end::
39
40 <p class="insert">
41 <input class="insert" type="submit" name="action_insert_0" value="Insert new section here"/>
42 </p>
43
44 ::table(contents)::
45 <a name="::ordering::"/>
46 <div class="action">
47 ::if(msie)::
48 <input type="submit" class="action" name="action_moveup_::ordering::" value="Up" title="Move this section up"/><br/>
49 <input type="submit" class="action" name="action_movedn_::ordering::" value="Down" title="Move this section down"/><br/><br/>
50 <input type="submit" class="action" name="action_delete_::ordering::" value="Delete" title="Delete this section"/><br/><br/>
51 <input type="submit" class="action" name="save" value="Save" title="Save whole page"/><br/><br/>
52 <input type="submit" class="action" name="cancel" value="Cancel" title="Cancel all edits"/><br/>
53 <a href="/_static/markup.html" target="_blank" class="help_link">(Editing&nbsp;help)</a>
54 ::else::
55 <button type="submit" class="action" name="action_moveup_::ordering::" value="1" title="Move this section up"><img src="/_graphics/arrow-up.png" width="10" height="10" alt=""/> Up</button><br/>
56 <button type="submit" class="action" name="action_movedn_::ordering::" value="1" title="Move this section down"><img src="/_graphics/arrow-down.png" width="10" height="10" alt=""/> Down</button><br/><br/>
57 <button type="submit" class="action" name="action_delete_::ordering::" value="1" title="Delete this section"><img src="/_graphics/cross.png" width="10" height="10" alt=""/> Delete</button><br/><br/>
58 <button type="submit" class="action" name="save" value="1" title="Save whole page"><strong>Save</strong></button><br/><br/>
59 <button type="submit" class="action" name="cancel" value="1" title="Cancel all edits">Cancel</button><br/>
60 <a href="/_static/markup.html" target="_blank" class="help_link">(Editing&nbsp;help)</a>
61 ::end::
62 </div>
63 <input class="heading" name="sectionname_::ordering::" value="::sectionname_html_tag::" size="40"/><br/>
64 <div class="edit_buttons" id="edit_buttons_::ordering::"></div>
65 <textarea id="content_::ordering::" name="content_::ordering::" rows="14" cols="80" onkeypress="update_preview ('content_::ordering::', 'preview_::ordering::')">::content_html_textarea::</textarea>
66 <div class="preview" id="preview_::ordering::"><noscript>(If you had Javascript, you would see a preview of your edits here)</noscript></div>
67 <script type="text/javascript"><!--
68 update_preview_now ('content_::ordering::', 'preview_::ordering::');
69 init_edit_buttons ('edit_buttons_::ordering::', 'content_::ordering::', 'preview_::ordering::');
70 //--></script>
71 <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"/>
72
73 <p class="insert">
74 <input class="insert" type="submit" name="action_insert_::ordering::" value="Insert new section here"/>
75 </p>
76 ::end::
77
78 </form>
79
80 ::include(footer.html)::
81 </body>
82 </html>