diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-07-14 18:27:19 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-07-14 18:27:19 +0000 |
| commit | ed334fdfefcdfdc570cfcd42aff171b177b76240 (patch) | |
| tree | e716196772096510a99f8445945f97c4af78680c /repoze/bfg/sampleapp/templates/blog_entry_add.pt | |
| parent | baf2406e1999160ad5d96e3adbeb525502a6d98b (diff) | |
| download | pyramid-ed334fdfefcdfdc570cfcd42aff171b177b76240.tar.gz pyramid-ed334fdfefcdfdc570cfcd42aff171b177b76240.tar.bz2 pyramid-ed334fdfefcdfdc570cfcd42aff171b177b76240.zip | |
Render templates explicitly in views.
Diffstat (limited to 'repoze/bfg/sampleapp/templates/blog_entry_add.pt')
| -rw-r--r-- | repoze/bfg/sampleapp/templates/blog_entry_add.pt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/repoze/bfg/sampleapp/templates/blog_entry_add.pt b/repoze/bfg/sampleapp/templates/blog_entry_add.pt index b41ae4b02..101163b44 100644 --- a/repoze/bfg/sampleapp/templates/blog_entry_add.pt +++ b/repoze/bfg/sampleapp/templates/blog_entry_add.pt @@ -1,24 +1,27 @@ <html xmlns="http://www.w3.org/1999/xhtml" xmlns:tal="http://xml.zope.org/namespaces/tal"> -<head></head> +<head> +</head> <body> - <form action="add_entry_handler" method="POST"> + <form action="${request.path_url}" method="POST"> + <h2 tal:condition="message" tal:content="message"></h2> <h1>Add a blog entry</h1> <table border="0"> <tr> <th>Title</th> - <td><input type="text" name="title"/></td> + <td><input type="text" name="title"/>${title}</td> </tr> <tr> <th>Author</th> - <td><input type="text" name="author"/></td> + <td><input type="text" name="author"/>${author}</td> </tr> <tr> <th>Body</th> - <td><textarea name="body" rows="10" value=""> </textarea></td> + <td><textarea name="body" rows="10" cols="80"> ${body}</textarea + ></td> </tr> <tr> - <td><input type="submit" name="add" value="Add"/></td> + <td><input type="submit" name="form.submitted" value="Add"/></td> </tr> </table> </form> |
