summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-03-14 21:07:02 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-03-14 21:07:02 +0100
commit07d79cf8bc26d3debec26508f26d6b170f7b8e5d (patch)
treeb5d39bdcf22560a428c35278a74ae6e105d8dd89 /templates
parent29ec6a5994b48330e2fe99a746bf105dd766f96f (diff)
Add missing edit_page template.
Diffstat (limited to 'templates')
-rw-r--r--templates/edit_page.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/templates/edit_page.html b/templates/edit_page.html
new file mode 100644
index 0000000..260a911
--- /dev/null
+++ b/templates/edit_page.html
@@ -0,0 +1,42 @@
+{.section head}
+ <link rel="stylesheet" type="text/css"
+ href="{root|html-attr-value}style/journal.css" />
+ <link rel="stylesheet" type="text/css"
+ href="/journal/prettify/prettify.css"/>
+ <script type="text/javascript" src="/journal/prettify/prettify.js"></script>
+ <script type="text/javascript" src="/journal/prettify/lang-lisp.js"></script>
+{.end}
+
+{.section body}
+ <h1 id="main-title">{site-name|html}</h1>
+ <div id="main-subtitle">{site-subtitle|html}</div>
+
+ <form id="editing-form" method="POST" accept-charset="UTF-8"
+ action="{link|html-attr-value}">
+ <input name="edit" type="hidden" />
+ <input name="save" type="hidden" />
+ <input name="revision" type="hidden" value="{article.revision|html-attr-value}" />
+ <table id="editing-form-table">
+ <tr>
+ <td><label for="title-field">{title-label|html}</label></td>
+ <td><input type="text" id="title-field" name="title" value="{article.title|html}"></td>
+ </tr>
+ <tr>
+ <td><label for="content-field">{content-label|html}</label></td>
+ <td><textarea id="content-field" name="content" rows="20" cols="80">{article.body|html}</textarea></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><input type="checkbox" id="publish-p" name="publish-p" value="t" /><label for="publish-p">{publish-flag-label|html-attr-value}</label></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><input type="submit" value="{save-button-label|html-attr-value}" /></td>
+ </tr>
+ </table>
+ </form>
+
+ <div id="article-preview">
+ {article|article-html}
+ </div>
+{.end}