Mercurial > genshi > mirror
comparison examples/tutorial/geddit/templates/comment.html @ 611:236c351928a2 trunk
Add current code for GenshiTutorial to the `examples` directory.
author | cmlenz |
---|---|
date | Wed, 29 Aug 2007 17:51:45 +0000 |
parents | |
children | 8ada29c99c0d |
comparison
equal
deleted
inserted
replaced
610:5e358de79e4c | 611:236c351928a2 |
---|---|
1 <!DOCTYPE html> | |
2 <html xmlns="http://www.w3.org/1999/xhtml" | |
3 xmlns:xi="http://www.w3.org/2001/XInclude" | |
4 xmlns:py="http://genshi.edgewall.org/"> | |
5 <xi:include href="layout.html" /> | |
6 <head> | |
7 <title>Comment on “${submission.title}”</title> | |
8 </head> | |
9 <body> | |
10 <h1>Comment on “${submission.title}”</h1> | |
11 <p py:if="comment"> | |
12 In reply to <strong>${comment.username}</strong> | |
13 at ${comment.time.strftime('%M/%d/%Y %H:%m')}: | |
14 <blockquote>${comment.content}</blockquote> | |
15 </p> | |
16 <form action="" method="post"> | |
17 <table summary=""><tbody><tr> | |
18 <th><label for="username">Your name:</label></th> | |
19 <td> | |
20 <input type="text" id="username" name="username" /> | |
21 <span py:if="'username' in errors" class="error">${errors.username}</span> | |
22 </td> | |
23 </tr><tr> | |
24 <th><label for="comment">Comment:</label></th> | |
25 <td> | |
26 <textarea id="comment" name="content" rows="6" cols="70"></textarea> | |
27 <span py:if="'content' in errors" class="error"><br />${errors.content}</span> | |
28 </td> | |
29 </tr></tbody></table> | |
30 <div> | |
31 <input type="submit" value="Submit" /> | |
32 <input type="submit" name="cancel" value="Cancel" /> | |
33 </div> | |
34 </form> | |
35 </body> | |
36 </html> |