summaryrefslogtreecommitdiff
path: root/examples/todo_wareweb/templates/index.pt
diff options
context:
space:
mode:
Diffstat (limited to 'examples/todo_wareweb/templates/index.pt')
-rw-r--r--examples/todo_wareweb/templates/index.pt22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/todo_wareweb/templates/index.pt b/examples/todo_wareweb/templates/index.pt
new file mode 100644
index 0000000..704fca8
--- /dev/null
+++ b/examples/todo_wareweb/templates/index.pt
@@ -0,0 +1,22 @@
+<html metal:use-macro="here/standard_template.pt/macros/page">
+<metal:body fill-slot="body">
+
+<ul>
+ <li tal:repeat="list options/lists">
+ <a tal:attributes="href python: '%s/view_list?id=%s' % (servlet.app_url, list.id)"
+ tal:content="list/description">list</a></li>
+</ul>
+
+<p tal:condition="not: options/lists">
+ There are no lists to display
+</p>
+
+<form action="./edit_list" method="POST">
+ Create a new list:<br>
+ <input type="hidden" name="id" value="new">
+ <input type="hidden" name="_action_" value="save">
+ <input type="text" name="description">
+ <input type="submit" value="Create!!!!">
+</form>
+</metal:body>
+</html>