summaryrefslogtreecommitdiff
path: root/quoins/templates/new_post.html
diff options
context:
space:
mode:
Diffstat (limited to 'quoins/templates/new_post.html')
-rw-r--r--quoins/templates/new_post.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/quoins/templates/new_post.html b/quoins/templates/new_post.html
new file mode 100644
index 0000000..0f38fd8
--- /dev/null
+++ b/quoins/templates/new_post.html
@@ -0,0 +1,46 @@
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:xi="http://www.w3.org/2001/XInclude"
5 xmlns:py="http://genshi.edgewall.org/">
6 <xi:include href="master.html" />
7 <xi:include href="blog-master.html" />
8
9 <head>
10 <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
11 <title>${blog.title}</title>
12 </head>
13
14
15 <body>
16 <div id="main">
17 <div id="blog-content">
18 <div py:if="post">
19 <p py:if="post.published">This post is published.</p>
20 <p py:if="not post.published">This post is a draft and is not yet published.</p>
21 </div>
22
23 ${form(defaults, action=quoins.url('/save_post'))}
24
25 <div id="blog-post-images" py:if="post and post.media">
26 <h3> Images </h3>
27 <ul>
28 <form action="${quoins.url('/delete_media')}" method="POST">
29 <input type="hidden" name="post_id" value="${post.id}" />
30 <li py:for="m in post.media">
31 <input type="checkbox" name="ids" value="${m.id}" /> <a href="${quoins.url(m)}">${m.name}</a><br />
32 <img src="${quoins.url(m)}" />
33 </li>
34 <div class="clear">
35 <input type="submit" value="Delete marked images" />
36 </div>
37 </form>
38 </ul>
39 </div>
40
41 </div>
42
43 </div> <!-- main -->
44
45 </body>
46</html>