oops, forgot the item_relocate template.
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Wed, 25 Mar 2009 03:39:04 +0000 (03:39 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Wed, 25 Mar 2009 03:39:04 +0000 (03:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@218 6d9bc8c9-1ec2-4278-b937-99fde70a366f

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

diff --git a/conifer/templates/item_relocate.xhtml b/conifer/templates/item_relocate.xhtml
new file mode 100644 (file)
index 0000000..49301ce
--- /dev/null
@@ -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>