summaryrefslogtreecommitdiff
path: root/repoze/bfg/sampleapp/www
diff options
context:
space:
mode:
Diffstat (limited to 'repoze/bfg/sampleapp/www')
-rw-r--r--repoze/bfg/sampleapp/www/blog.pt3
-rw-r--r--repoze/bfg/sampleapp/www/blog_entry_add.pt26
2 files changed, 29 insertions, 0 deletions
diff --git a/repoze/bfg/sampleapp/www/blog.pt b/repoze/bfg/sampleapp/www/blog.pt
index ffe8659df..8ccbe56a2 100644
--- a/repoze/bfg/sampleapp/www/blog.pt
+++ b/repoze/bfg/sampleapp/www/blog.pt
@@ -15,5 +15,8 @@
<td>${entry.created}</td>
</tr>
</table>
+ <p>
+ <a href="add_entry.html">Add blog entry</a>
+ </p>
</body>
</html>
diff --git a/repoze/bfg/sampleapp/www/blog_entry_add.pt b/repoze/bfg/sampleapp/www/blog_entry_add.pt
new file mode 100644
index 000000000..b41ae4b02
--- /dev/null
+++ b/repoze/bfg/sampleapp/www/blog_entry_add.pt
@@ -0,0 +1,26 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:tal="http://xml.zope.org/namespaces/tal">
+<head></head>
+<body>
+ <form action="add_entry_handler" method="POST">
+ <h1>Add a blog entry</h1>
+ <table border="0">
+ <tr>
+ <th>Title</th>
+ <td><input type="text" name="title"/></td>
+ </tr>
+ <tr>
+ <th>Author</th>
+ <td><input type="text" name="author"/></td>
+ </tr>
+ <tr>
+ <th>Body</th>
+ <td><textarea name="body" rows="10" value=""> </textarea></td>
+ </tr>
+ <tr>
+ <td><input type="submit" name="add" value="Add"/></td>
+ </tr>
+ </table>
+ </form>
+</body>
+</html>