Mercurial > genshi > genshi-test
view examples/tutorial/geddit/templates/comment.html @ 619:71d3edd302ae
GenshiTutorial: various updates to sync with wiki page.
author | cmlenz |
---|---|
date | Thu, 30 Aug 2007 14:19:59 +0000 |
parents | 80a9c247ca80 |
children | d218020fb92a |
line wrap: on
line source
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:py="http://genshi.edgewall.org/"> <xi:include href="layout.html" /> <head> <title>Comment on “${link.title}”</title> </head> <body> <h1>Comment on “${link.title}”</h1> <p py:if="comment"> In reply to <strong>${comment.username}</strong> at ${comment.time.strftime('%M/%d/%Y %H:%m')}: <blockquote>${comment.content}</blockquote> </p> <form action="" method="post"> <table summary=""><tbody><tr> <th><label for="username">Your name:</label></th> <td> <input type="text" id="username" name="username" /> <span py:if="'username' in errors" class="error">${errors.username}</span> </td> </tr><tr> <th><label for="comment">Comment:</label></th> <td> <textarea id="comment" name="content" rows="6" cols="50"></textarea> <span py:if="'content' in errors" class="error"><br />${errors.content}</span> </td> </tr></tbody></table> <div> <input type="submit" value="Submit" /> <input type="submit" name="cancel" value="Cancel" /> </div> </form> </body> </html>