Mercurial > genshi > mirror
diff examples/tutorial/geddit/templates/_form.html @ 720:acf7c5ee36e7 experimental-newctxt
newctxt branch: Merged revisions [678:835] via svnmerge from [source:trunk].
author | cmlenz |
---|---|
date | Fri, 11 Apr 2008 08:42:11 +0000 |
parents | |
children |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/examples/tutorial/geddit/templates/_form.html @@ -0,0 +1,24 @@ +<form xmlns="http://www.w3.org/1999/xhtml" + xmlns:py="http://genshi.edgewall.org/" + class="comment" action="${url('/comment/%s/' % link.id)}" 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> + <p class="hint">You can use HTML tags here for formatting.</p> + </td> + </tr><tr> + <td></td> + <td> + <input type="submit" value="Submit" /> + <input type="submit" name="cancel" value="Cancel" /> + </td> + </tr></tbody></table> +</form>