comparison examples/tutorial/geddit/templates/comment.html @ 625:dba522b4c31d

GenshiTutorial: implemented AJAX commenting.
author cmlenz
date Fri, 31 Aug 2007 17:01:00 +0000
parents d218020fb92a
children d648cd694286
comparison
equal deleted inserted replaced
624:1d23dddd6c2d 625:dba522b4c31d
11 <p py:if="comment"> 11 <p py:if="comment">
12 In reply to <strong>${comment.username}</strong> 12 In reply to <strong>${comment.username}</strong>
13 at ${comment.time.strftime('%x %X')}: 13 at ${comment.time.strftime('%x %X')}:
14 <blockquote>${comment.content}</blockquote> 14 <blockquote>${comment.content}</blockquote>
15 </p> 15 </p>
16 <form action="" method="post"> 16 <xi:include href="_form.html" />
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="50"></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> 17 </body>
36 </html> 18 </html>
Copyright (C) 2012-2017 Edgewall Software