[Zope-CVS] CVS: Packages/JobBoardEx/Views/Browser - ApproveJobs.pt:1.2
Barry Warsaw
barry@wooz.org
Wed, 20 Mar 2002 17:22:37 -0500
Update of /cvs-repository/Packages/JobBoardEx/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv609/Views/Browser
Modified Files:
ApproveJobs.pt
Log Message:
Fix the argument to JobList.query(), however we're hardcoding "pending
approval" when we should probably get this from the IJob interface.
job.getId() -> job.id
Add a "Back" button, and a <head> section.
=== Packages/JobBoardEx/Views/Browser/ApproveJobs.pt 1.1 => 1.2 ===
+<head></head>
<body>
<form action="." method="post">
@@ -8,23 +9,23 @@
</tr>
<tr><th>Defer</th><th>Approve</th><th>Discard</th>
</tr>
- <tr tal:repeat="job python:here.query('waiting')"
+ <tr tal:repeat="job python:here.query('pending approval')"
style="text-align:center">
<td><input name="job_N" type="radio" value="defer" checked
- tal:attributes="name python:'job_%s' % job.getId()"></td>
+ tal:attributes="name python:'job_%s' % job.id"></td>
<td><input name="job_N" type="radio" value="approve"
- tal:attributes="name python:'job_%s' % job.getId()"></td>
+ tal:attributes="name python:'job_%s' % job.id"></td>
<td><input name="job_N" type="radio" value="discard"
- tal:attributes="name python:'job_%s' % job.getId()"></td>
- </td>
- <td tal:content="job/getSummary">The best job on the Internet</td>
+ tal:attributes="name python:'job_%s' % job.id"></td>
+ <td tal:content="job/summary">The best job on the Internet</td>
</tr>
<tr><td colspan="3">
<input name="submit:method" type="submit" value="Submit">
<input name="cancel:method" type="submit" value="Cancel">
+ <input hame="back:method" type="submit" value="Back to summary">
</td></tr>
</table>
</form>
-</html>
</body>
+</html>