summaryrefslogtreecommitdiff
path: root/examples/todo_sql/templates
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-08-22 18:22:27 +0000
committerianb <devnull@localhost>2005-08-22 18:22:27 +0000
commit27f2c911e823216a8db5873a53b1da10c0a4c4d1 (patch)
tree1ed476b090fdda9834d088b38c54c27687e8e23b /examples/todo_sql/templates
parente17ed7b172e6b8e914c28cd3dfec53fa7b452eb7 (diff)
downloadpaste-27f2c911e823216a8db5873a53b1da10c0a4c4d1.tar.gz
Examples will be kept in a separate location in the repository in the future; build-pkg is deprecated also
Diffstat (limited to 'examples/todo_sql/templates')
-rw-r--r--examples/todo_sql/templates/generic_error.pt7
-rw-r--r--examples/todo_sql/templates/index.pt22
-rw-r--r--examples/todo_sql/templates/standard_template.pt43
-rw-r--r--examples/todo_sql/templates/view_list.pt57
4 files changed, 0 insertions, 129 deletions
diff --git a/examples/todo_sql/templates/generic_error.pt b/examples/todo_sql/templates/generic_error.pt
deleted file mode 100644
index 7b32820..0000000
--- a/examples/todo_sql/templates/generic_error.pt
+++ /dev/null
@@ -1,7 +0,0 @@
-<html metal:use-macro="here/standard_template.pt/macros/page">
-<metal:body fill-slot="body">
-
-<tal:block replace="structure options/error_message" />
-
-</metal:body>
-</html> \ No newline at end of file
diff --git a/examples/todo_sql/templates/index.pt b/examples/todo_sql/templates/index.pt
deleted file mode 100644
index b889e14..0000000
--- a/examples/todo_sql/templates/index.pt
+++ /dev/null
@@ -1,22 +0,0 @@
-<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.baseURL, 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>
diff --git a/examples/todo_sql/templates/standard_template.pt b/examples/todo_sql/templates/standard_template.pt
deleted file mode 100644
index e3ff01d..0000000
--- a/examples/todo_sql/templates/standard_template.pt
+++ /dev/null
@@ -1,43 +0,0 @@
-<metal:tpl define-macro="page">
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
- "http://www.w3.org/TR/REC-html40/loose.dtd">
-<html lang="en-US">
-<head>
-<title tal:content="servlet/title">title</title>
-<link rel="stylesheet" type="text/css"
- tal:attributes="href python: servlet.baseStaticURL + '/stylesheet.css'">
-
-<metal:slot define-slot="extra_head"></metal:slot>
-
-</head>
-<body>
-
-<h1 id="header"><tal:mark replace="servlet/title"/></h1>
-
-<table width="100%">
-<tr>
-<td id="sidenav" width="20%">
-<a tal:attributes="href servlet/baseURL">Home</a><br>
-<tal:for repeat="list options/lists">
- <a tal:attributes="href python: '%s/view_list?id=%s' %
- (servlet.baseURL, list.id)"
- tal:content="list/description">link</a><br>
-</tal:for>
-</td>
-
-<td>
-<span tal:replace="structure servlet/messageText">
-This is where the notification messages go.
-</span>
-
-<div id="content">
-<metal:tpl define-slot="body">
-[This page has not customized its "body" slot]
-</metal:tpl>
-</div>
-
-</td></tr></table>
-
-</body>
-</html>
-</metal:tpl>
diff --git a/examples/todo_sql/templates/view_list.pt b/examples/todo_sql/templates/view_list.pt
deleted file mode 100644
index 2a85b13..0000000
--- a/examples/todo_sql/templates/view_list.pt
+++ /dev/null
@@ -1,57 +0,0 @@
-<html metal:use-macro="here/standard_template.pt/macros/page">
-<metal:body fill-slot="body">
-
-<form action="view_list?_action_=check" method="POST">
-<input type="hidden" name="id"
- tal:attributes="value options/list/id">
-
-<table>
-<tr>
- <th>Done?</th>
- <th>Description</th>
-</tr>
-
-<tr tal:repeat="item options/list_items">
- <tal:let define="name python: 'item_%s' % item.id">
- <td>
- <input type="checkbox"
- tal:attributes="name name;
- id name;
- checked item/done">
- </td>
- <td>
- <label tal:attributes="for name"
- tal:content="item/description">description</label>
- </td>
- <td><a tal:attributes="
- href python: 'view_list?_action_=destroy&item_id=%s'
- % item.id">[delete]</a></td>
- </tal:let>
-</tr>
-
-<tr tal:condition="not: options/list_items">
- <td colspan=2>No items to display</td>
-</tr>
-
-</table>
-
-<input type="submit" value="Update item status">
-</form>
-
-<form action="view_list?_action_=add" method="POST">
-<input type="hidden" name="id"
- tal:attributes="value options/list/id">
-Add item:<br>
-<input type="text" style="width: 100%" name="description"><br>
-<input type="submit" value="Add">
-</form>
-
-<form action="edit_list?_action_=destroy" method="POST">
-<input type="hidden" name="id"
- tal:attributes="value options/list/id">
-<input type="submit" value="Delete this list"
- onclick="return window.confirm('Really delete this list?')">
-</form>
-
-</metal:body>
-</html>