summaryrefslogtreecommitdiff
path: root/repoze/bfg/sampleapp/www/blog_entry_add.pt
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2008-07-08 15:34:54 +0000
committerChris McDonough <chrism@agendaless.com>2008-07-08 15:34:54 +0000
commit627152500bc9621a9dde766ae429d6e717043df9 (patch)
treebc35618fe5bf8215fed8cb44c5e22f9ff1020a65 /repoze/bfg/sampleapp/www/blog_entry_add.pt
parent2793484d3e201515cbc9a5a5dd5106891a4b37bc (diff)
downloadpyramid-627152500bc9621a9dde766ae429d6e717043df9.tar.gz
pyramid-627152500bc9621a9dde766ae429d6e717043df9.tar.bz2
pyramid-627152500bc9621a9dde766ae429d6e717043df9.zip
Fix a thinko in metaconfigure.
Allow blog entries to be created.
Diffstat (limited to 'repoze/bfg/sampleapp/www/blog_entry_add.pt')
-rw-r--r--repoze/bfg/sampleapp/www/blog_entry_add.pt26
1 files changed, 26 insertions, 0 deletions
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>