added placeholder template for browse_courses
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sat, 10 Jan 2009 21:01:42 +0000 (21:01 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Sat, 10 Jan 2009 21:01:42 +0000 (21:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@98 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/templates/browse_courses.xhtml [new file with mode: 0644]

diff --git a/conifer/templates/browse_courses.xhtml b/conifer/templates/browse_courses.xhtml
new file mode 100644 (file)
index 0000000..2dbd483
--- /dev/null
@@ -0,0 +1,28 @@
+<?python
+title = 'Browse Courses'
+?>
+<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"/>
+<head>
+  <title>${title}</title>
+</head>
+<body>
+  <h1>${title}</h1>
+  <p class="todo">What does the RD browse interface look like? Drill down by dept?</p>
+  <h2>All courses</h2>
+  <table class="pagetable">
+    <thead>
+      <tr><th py:for="h in ['Code','Title','Term']">${h}</th></tr>
+    </thead>
+    <tbody>
+      <tr py:for="c in models.Course.objects.all().order_by('code')">
+       <td>${c.code}</td>
+       <td>${c.title}</td>
+       <td>${c.term}</td>
+      </tr>
+    </tbody>
+  </table>
+</body>
+</html>