git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@43 6d9bc8c9-1ec2-4278...
authorartunit <artunit@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 24 Nov 2008 21:26:14 +0000 (21:26 +0000)
committerartunit <artunit@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 24 Nov 2008 21:26:14 +0000 (21:26 +0000)
conifer/templates/instructors.xhtml [new file with mode: 0644]

diff --git a/conifer/templates/instructors.xhtml b/conifer/templates/instructors.xhtml
new file mode 100644 (file)
index 0000000..2907b88
--- /dev/null
@@ -0,0 +1,26 @@
+<?python
+title = 'Instructors'
+?>
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:py="http://genshi.edgewall.org/">
+<xi:include href="master.xhtml"/>
+<xi:include href="paginate.xhtml"/>
+<head>
+  <title>${title}</title>
+  <script type="text/javascript">
+    <!-- !This ought to be in paginate.xhtml, not here. how to do? -->
+    $(function() { $('.pagetable').tablesorter(); });
+  </script>
+</head>
+<body>
+  <h1>${title}</h1>
+  <tr py:def="pageheader()">
+    <th>Name</th>
+  </tr>
+  <span py:def="pagerow(item)">
+    <td>${item.user.last_name}, ${item.user.first_name}</td>
+  </span>
+  ${pagetable(paginator, count, pagerow, pageheader)}
+</body>
+</html>