[open-ils-commits] r98 - servres/trunk/conifer/templates

svn at svn.open-ils.org svn at svn.open-ils.org
Sat Jan 10 16:01:46 EST 2009


Author: gfawcett
Date: 2009-01-10 16:01:42 -0500 (Sat, 10 Jan 2009)
New Revision: 98

Added:
   servres/trunk/conifer/templates/browse_courses.xhtml
Log:
added placeholder template for browse_courses


Added: servres/trunk/conifer/templates/browse_courses.xhtml
===================================================================
--- servres/trunk/conifer/templates/browse_courses.xhtml	                        (rev 0)
+++ servres/trunk/conifer/templates/browse_courses.xhtml	2009-01-10 21:01:42 UTC (rev 98)
@@ -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>



More information about the open-ils-commits mailing list