[open-ils-commits] r202 - servres/trunk/conifer/templates (gfawcett)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Mar 19 19:30:59 EDT 2009


Author: gfawcett
Date: 2009-03-19 19:30:59 -0400 (Thu, 19 Mar 2009)
New Revision: 202

Modified:
   servres/trunk/conifer/templates/item_add_elec.xhtml
Log:
metadata-editing on electronic documents.

Modified: servres/trunk/conifer/templates/item_add_elec.xhtml
===================================================================
--- servres/trunk/conifer/templates/item_add_elec.xhtml	2009-03-19 23:21:17 UTC (rev 201)
+++ servres/trunk/conifer/templates/item_add_elec.xhtml	2009-03-19 23:30:59 UTC (rev 202)
@@ -1,6 +1,6 @@
 <?python
 is_edit = bool(item.id)
-title = is_edit and _('Edit an electronic document') or _('Add a new electronic document')
+title = is_edit and _('Edit (electronic document)') or _('Add a new electronic document')
 course_title = '%s: %s (%s)' % (course.code, course.title, course.term)
 ?>
 <html xmlns="http://www.w3.org/1999/xhtml"
@@ -18,7 +18,8 @@
   <body>
     ${course_banner(course)}
     ${nested_title(parent_item)}
-    <h3>${title}</h3>
+    <h2>${title}</h2>
+    <h3>Metadata</h3>
     <div py:if="not is_edit">
       <form action=".?item_type=${item_type}" method="POST"
 	    enctype="multipart/form-data">
@@ -39,14 +40,15 @@
 	  <tr><th>Title of document</th><td><input type="text" name="title"
 	  value="${item.title}"/></td></tr>
 	</table>
-	<p><input type="submit" value="Update item"/></p>
+	${item_metadata_formset()}
+	<p><input type="submit" value="Update title and metadata"/></p>
       </form>
-      <h3>Replace the current file with a new file</h3>
+      <h3>File contents</h3>
       <form action="." method="POST" enctype="multipart/form-data">
 	<table>
 	  <tr><th>File</th><td><input type="file" name="file"/></td></tr>
 	</table>
-	<p><input type="submit" value="Upload new file"/></p>
+	<p><input type="submit" value="Upload new file contents"/></p>
       </form>
     </div>
 </body>



More information about the open-ils-commits mailing list