Mercurial > genshi > mirror
comparison examples/tutorial/geddit/templates/_form.html @ 625:abad7c2ebe15 trunk
GenshiTutorial: implemented AJAX commenting.
author | cmlenz |
---|---|
date | Fri, 31 Aug 2007 17:01:00 +0000 |
parents | |
children | e990fa05d80b |
comparison
equal
deleted
inserted
replaced
624:dc657447f352 | 625:abad7c2ebe15 |
---|---|
1 <form xmlns="http://www.w3.org/1999/xhtml" | |
2 xmlns:py="http://genshi.edgewall.org/" | |
3 class="comment" action="${url('/comment/%s/' % link.id)}" method="post"> | |
4 <table summary=""><tbody><tr> | |
5 <th><label for="username">Your name:</label></th> | |
6 <td> | |
7 <input type="text" id="username" name="username" /> | |
8 <span py:if="'username' in errors" class="error">${errors.username}</span> | |
9 </td> | |
10 </tr><tr> | |
11 <th><label for="comment">Comment:</label></th> | |
12 <td> | |
13 <textarea id="comment" name="content" rows="6" cols="50"></textarea> | |
14 <span py:if="'content' in errors" class="error"><br />${errors.content}</span> | |
15 </td> | |
16 </tr><tr> | |
17 <td></td> | |
18 <td> | |
19 <input type="submit" value="Submit" /> | |
20 <input type="submit" name="cancel" value="Cancel" /> | |
21 </td> | |
22 </tr></tbody></table> | |
23 </form> |