annotate examples/tutorial/geddit/templates/submit.html @ 966:570226c48119 trunk

Templates should be loaded as bytes -- the encoding is passed around with the source explicitly. Fixes bugs in test suite in Python 3.3.
author hodgestar
date Sat, 29 Dec 2012 19:12:14 +0000
parents f779e566884d
children
rev   line source
611
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
1 <!DOCTYPE html>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml"
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
3 xmlns:xi="http://www.w3.org/2001/XInclude"
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
4 xmlns:py="http://genshi.edgewall.org/">
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
5 <xi:include href="layout.html" />
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
6 <head>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
7 <title>Submit new link</title>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
8 </head>
633
f779e566884d GenshiTutorial: add body class to show that the ''@*'' XPath in the match template works.
cmlenz
parents: 628
diff changeset
9 <body class="submit">
611
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
10 <h1>Submit new link</h1>
628
9822dfff0fd5 GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents: 625
diff changeset
11
611
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
12 <form action="" method="post">
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
13 <table summary=""><tbody><tr>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
14 <th><label for="username">Your name:</label></th>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
15 <td>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
16 <input type="text" id="username" name="username" />
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
17 <span py:if="'username' in errors" class="error">${errors.username}</span>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
18 </td>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
19 </tr><tr>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
20 <th><label for="url">Link URL:</label></th>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
21 <td>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
22 <input type="text" id="url" name="url" />
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
23 <span py:if="'url' in errors" class="error">${errors.url}</span>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
24 </td>
625
abad7c2ebe15 GenshiTutorial: implemented AJAX commenting.
cmlenz
parents: 611
diff changeset
25 </tr><tr>
611
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
26 <th><label for="title">Title:</label></th>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
27 <td>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
28 <input type="text" name="title" />
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
29 <span py:if="'title' in errors" class="error">${errors.title}</span>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
30 </td>
625
abad7c2ebe15 GenshiTutorial: implemented AJAX commenting.
cmlenz
parents: 611
diff changeset
31 </tr><tr>
abad7c2ebe15 GenshiTutorial: implemented AJAX commenting.
cmlenz
parents: 611
diff changeset
32 <td></td>
abad7c2ebe15 GenshiTutorial: implemented AJAX commenting.
cmlenz
parents: 611
diff changeset
33 <td>
abad7c2ebe15 GenshiTutorial: implemented AJAX commenting.
cmlenz
parents: 611
diff changeset
34 <input type="submit" value="Submit" />
abad7c2ebe15 GenshiTutorial: implemented AJAX commenting.
cmlenz
parents: 611
diff changeset
35 <input type="submit" name="cancel" value="Cancel" />
abad7c2ebe15 GenshiTutorial: implemented AJAX commenting.
cmlenz
parents: 611
diff changeset
36 </td>
611
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
37 </tr></tbody></table>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
38 </form>
628
9822dfff0fd5 GenshiTutorial: tweaks to sync with code on wiki page.
cmlenz
parents: 625
diff changeset
39
611
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
40 </body>
236c351928a2 Add current code for GenshiTutorial to the `examples` directory.
cmlenz
parents:
diff changeset
41 </html>
Copyright (C) 2012-2017 Edgewall Software