[open-ils-commits] r218 - servres/trunk/conifer/templates (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Mar 24 23:39:06 EDT 2009
Author: gfawcett
Date: 2009-03-24 23:39:04 -0400 (Tue, 24 Mar 2009)
New Revision: 218
Added:
servres/trunk/conifer/templates/item_relocate.xhtml
Log:
oops, forgot the item_relocate template.
Added: servres/trunk/conifer/templates/item_relocate.xhtml
===================================================================
--- servres/trunk/conifer/templates/item_relocate.xhtml (rev 0)
+++ servres/trunk/conifer/templates/item_relocate.xhtml 2009-03-25 03:39:04 UTC (rev 218)
@@ -0,0 +1,40 @@
+<?python
+title = 'Move item under a different heading'
+?>
+<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="components/course.xhtml"/>
+ <head>
+ <title>${title}</title>
+ <script type="text/javascript" src="/static/menublocks.js"/>
+ </head>
+ <body>
+ ${course_banner(course)}
+ ${nested_title(item)}
+ <h2>${title}</h2>
+ <p>Please choose the heading under which this item should be moved:</p>
+ <form action="." method="POST">
+ <table>
+ <tbody style="text-align: left;">
+ <tr><th>Item title:</th><td>${item.title}</td></tr>
+ <tr><th>Current heading:</th><td>${item.parent_heading and item.parent_heading.title or 'Top Level'}</td></tr>
+ <tr><th>New heading:</th>
+ <td>
+ <select name="newheading">
+ <option value="0">Top Level (no heading)</option>
+ <option py:for="h in [h for h in course.headings() if not h == item]"
+ value="${h.id}">${h.title}</option>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <th/>
+ <td><input type="submit" value="Move item"/></td>
+ </tr>
+ </tbody>
+ </table>
+ </form>
+ </body>
+</html>
More information about the open-ils-commits
mailing list