[Zope3-checkins] CVS: zopeproducts/demo/jobboard -
JobListView.pt:1.10 JobView.pt:1.15 configure.zcml:1.18
edit.pt:1.5 preview.pt:1.5 review.pt:1.4 thanks.pt:1.3
sree
sree at mahiti.org
Tue Dec 16 04:46:36 EST 2003
Update of /cvs-repository/zopeproducts/demo/jobboard
In directory cvs.zope.org:/tmp/cvs-serv7119
Added Files:
JobListView.pt JobView.pt configure.zcml edit.pt preview.pt
review.pt thanks.pt
Log Message:
=== zopeproducts/demo/jobboard/JobListView.pt 1.9 => 1.10 ===
--- /dev/null Tue Dec 16 04:46:36 2003
+++ zopeproducts/demo/jobboard/JobListView.pt Tue Dec 16 04:46:36 2003
@@ -0,0 +1,28 @@
+<HTML i18n:domain="jobboard">
+<HEAD>
+<TITLE i18n:translate="job-board-title">Job Board</TITLE>
+</HEAD>
+<BODY>
+<h1 i18n:translate="job-board-title">Job Board</h1>
+
+<A href="edit.html" i18n:translate="submit-new-job">Submit a new job</A>
+
+<H2 i18n:translate="job-listings">Job Listings</H2>
+
+<table>
+
+<tr tal:repeat="jobid context/getApprovedIds">
+ <td>
+ <a href="jobid" tal:attributes="href jobid">
+ <span tal:replace="context/?jobid/summary">A job summary</span></A>
+ </td>
+</tr>
+</table>
+
+<!-- XXX this should only appear if the user has the proper permissions -->
+<h2 i18n:translate="other-operations">Other operations</h2>
+<a href="review.html"
+ i18n:translate="approve-submitted-jobs">Approve submitted jobs</a>
+
+</BODY>
+</HTML>
=== zopeproducts/demo/jobboard/JobView.pt 1.14 => 1.15 ===
--- /dev/null Tue Dec 16 04:46:36 2003
+++ zopeproducts/demo/jobboard/JobView.pt Tue Dec 16 04:46:36 2003
@@ -0,0 +1,39 @@
+<html i18n:domain="jobboard">
+<head>
+<title tal:content="context/summary">Job summary goes here</title>
+</head>
+<body>
+
+ <h3 tal:content="context/summary">Job summary goes here</h3>
+
+ <table border=0>
+ <tr><td i18n:translate="full-description">Description:</td>
+ <td>
+ <pre tal:content="context/description">Full descripion goes here
+ (multiple lines)
+ </pre>
+ </td>
+ </tr>
+ <tr><td i18n:translate="contact">Contact:</td>
+ <td><a href="user at host.com"
+ tal:attributes="href string:mailto:${context/contact}"
+ tal:content="context/contact">user at host.com</a></td>
+ </tr>
+ <tr><td i18n:translate="salary">Salary Range:</td>
+ <td tal:content="context/salary"></td>
+ </tr>
+ <tr><td i18n:translate="startdate">Start date:</td>
+ <td tal:content="python: request.locale.getDateFormatter('full').format(context.startdate)"></td>
+ </tr>
+
+ </table>
+
+ <table border=0>
+ <tr><td>
+ <a href=".." i18n:translate="back-to-jobs">Back to jobs</a>
+ </td></tr>
+ </table>
+
+</body>
+</html>
+
=== zopeproducts/demo/jobboard/configure.zcml 1.17 => 1.18 ===
--- /dev/null Tue Dec 16 04:46:36 2003
+++ zopeproducts/demo/jobboard/configure.zcml Tue Dec 16 04:46:36 2003
@@ -0,0 +1,72 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ xmlns:browser="http://namespaces.zope.org/browser"
+ xmlns:gts="http://namespaces.zope.org/gts"
+ i18n_domain="jobboardi18n"
+ >
+
+<content class="zopeproducts.demo.jobboard.job.JobList">
+ <factory
+ id="zopeproducts.demo.jobboard.job.JobList"
+ title="I18n Job List"
+ permission="zope.ManageContent"
+ />
+ <allow interface=".interfaces.IJobList" />
+ <implements interface="zope.app.interfaces.container.IItemContainer" />
+</content>
+
+<browser:addMenuItem
+ title="I18N Job Board"
+ description="Internationalized board for posting and searching jobs."
+ class="zopeproducts.demo.jobboard.job.JobList"
+ permission="zope.ManageContent"
+ />
+
+<content class=".job.Job">
+ <allow interface="zopeproducts.demo.jobboard.interfaces.IJob" />
+</content>
+
+<browser:page
+ name="index.html"
+ for="zopeproducts.demo.jobboard.interfaces.IJobList"
+ template="JobListView.pt"
+ permission="zope.View"
+ />
+
+<browser:pages
+ for="zopeproducts.demo.jobboard.interfaces.IJobList"
+ class=".browser.JobCreateView"
+ permission="zope.View"
+ >
+
+ <browser:page name="edit.html" attribute="edit" />
+ <browser:page name="preview.html" attribute="preview" />
+ <browser:page name="create.method" attribute="create" />
+</browser:pages>
+
+<browser:page
+ name="index.html"
+ for="zopeproducts.demo.jobboard.interfaces.IJob"
+ template="JobView.pt"
+ permission="zope.View"
+ />
+
+<browser:pages
+ for="zopeproducts.demo.jobboard.job.IJobList"
+ class=".browser.ApproveJobsView"
+ permission="zope.ManageContent"
+ >
+
+ <browser:page name="review.html" attribute="review" />
+ <browser:page name="approve.method" attribute="approve" />
+</browser:pages>
+
+<browser:icon
+ name="zmi_icon"
+ for="zopeproducts.demo.jobboard.interfaces.IJobList"
+ file="./joblist.gif"
+ />
+
+<gts:registerTranslations directory="./locale" />
+
+</configure>
=== zopeproducts/demo/jobboard/edit.pt 1.4 => 1.5 ===
--- /dev/null Tue Dec 16 04:46:36 2003
+++ zopeproducts/demo/jobboard/edit.pt Tue Dec 16 04:46:36 2003
@@ -0,0 +1,54 @@
+<html i18n:domain="jobboard">
+<head>
+<title i18n:translate="enter-new-job-data">Enter new job data</title>
+</head>
+<body>
+<h1 i18n:translate="enter-new-job-data">Enter new job data</h1>
+
+<p i18n:translate="when-done">When you are done, press the Preview
+button below.</p>
+
+ <form action="preview.html" method="post">
+ <table border=0>
+ <tr><td i18n:translate="contributor-email">Contributor email:</td>
+ <td><input name="submitter" value="" size="60"
+ tal:attributes="value request/submitter|nothing" />
+ </td>
+ </tr>
+ <tr><td i18n:translate="one-line-summary">One-line summary:</td>
+ <td><input name="summary" value="" size="60"
+ tal:attributes="value request/summary|nothing" />
+ </td>
+ </tr>
+ <tr><td i18n:translate="full-description">Full description (no HTML):</td>
+ <td><textarea name="description" cols=60 rows=10 wrap="hard"
+ ><span tal:replace="request/description|nothing">Description</span>
+ </textarea>
+ </td>
+ </tr>
+ <tr><td i18n:translate="contact">Contact (where to apply):</td>
+ <td><input name="contact" value="" size="60"
+ tal:attributes="value request/contact|nothing" />
+ </td>
+ </tr>
+ <tr><td i18n:translate="salary">Salary Range:</td>
+ <td><input name="salary" value="" size="60"
+ tal:attributes="value request/salary|nothing" />
+ </td>
+ </tr>
+ <tr>
+ <td><span i18n:translate="startdate">Start Date</span><br>
+ (<span tal:replace="python:request.locale.getDateFormatter('short').getPattern()" />)</td>
+ <td><input name="startdate" value="" size="60"
+ tal:attributes="value request/startdate|nothing" />
+ </td>
+ </tr>
+ <tr><td colspan="2">
+ <input type="submit" value="Preview" i18n:attributes="value=Preview">
+ </td>
+ </tr>
+ </table>
+ </form>
+
+</body>
+</html>
=== zopeproducts/demo/jobboard/preview.pt 1.4 => 1.5 ===
--- /dev/null Tue Dec 16 04:46:36 2003
+++ zopeproducts/demo/jobboard/preview.pt Tue Dec 16 04:46:36 2003
@@ -0,0 +1,83 @@
+<html i18n:domain="jobboard">
+<head>
+<title i18n:translate="preview-new-job-data">Preview new job data</title>
+</head>
+
+<body>
+
+<h1 i18n:translate="preview-new-job-data">Preview New Job Data</h1>
+
+<p i18n:translate="instructions">This is what your job will look like
+once it is approved by the site manager. To change your submission
+now, use your browser's Back button and resubmit the form. To submit
+now, click on the Submit button below.
+</p>
+
+<p i18n:translate="verify">Your contact email address is recorded as
+<span i18n:name="email">
+<a href="user at host.com"
+ tal:attributes="href string:mailto:${request/submitter}"
+ tal:content="request/submitter">
+ user at host.com</a></span>.
+This address will not be published on the website, but we will use it
+to reach you if we have questions about your submission. Job seekers
+will contact the address you provide in the Contact field.
+</p>
+
+<!-- p tal:condition="view/error"
+ tal:content="view/error">Error messages go here</p -->
+
+<hr>
+
+ <h3 tal:content="request/summary">Job summary goes here</h3>
+
+ <table border="0">
+ <tr>
+ <td>
+ <pre tal:content="request/description">Full descripion goes here
+ (multiple lines)
+ </pre>
+ </td>
+ <tr><td i18n:translate="">Contact:</td>
+ <td><a href="user at host.com"
+ tal:attributes="href string:mailto:${request/contact}"
+ tal:content="request/contact">user at host.com</a></td>
+ </tr>
+ <tr><td i18n:translate="salary">Salary Range:</td>
+ <td tal:content="request/salary">
+ </td>
+ </tr>
+ <tr><td i18n:translate="startdate">Start Date:</td>
+ <td tal:content="request/startdate">
+ </td>
+ </tr>
+
+ </table>
+
+<hr>
+
+ <form action="create.method" method="post">
+
+ <input name="submitter" type="hidden" value=""
+ tal:attributes="value request/submitter" />
+ <input name="summary" type="hidden" value=""
+ tal:attributes="value request/summary" />
+ <input name="description" type="hidden" value=""
+ tal:attributes="value request/description" />
+ <input name="contact" type="hidden" value=""
+ tal:attributes="value request/contact" />
+ <input name="salary" type="hidden" value=""
+ tal:attributes="value request/salary" />
+ <input name="startdate" type="hidden" value=""
+ tal:attributes="value request/startdate" />
+
+ <input type="submit" name="submit" value="Submit"
+ i18n:attributes="value Submit"/>
+
+ <input type="submit" name="edit" value="Edit"
+ i18n:attributes="value Edit" />
+
+ </form>
+
+</body>
+</html>
=== zopeproducts/demo/jobboard/review.pt 1.3 => 1.4 ===
--- /dev/null Tue Dec 16 04:46:36 2003
+++ zopeproducts/demo/jobboard/review.pt Tue Dec 16 04:46:36 2003
@@ -0,0 +1,45 @@
+<html i18n:domain="jobboard">
+<head>
+<title i18n:translate="approve-title">Approve submitted jobs</title>
+</head>
+<body>
+
+<h1 i18n:translate="approve-title">Approve Submitted Jobs</h1>
+
+ <form action="approve.method" method="post">
+ <table border=0>
+ <tr><th colspan=3 i18n:translate="">Action</th>
+ <th rowspan=2 i18n:translate="">Summary</th>
+ </tr>
+ <tr><th i18n:translate="">Defer</th>
+ <th i18n:translate="">Approve</th>
+ <th i18n:translate="">Discard</th>
+ </tr>
+ <tr tal:repeat="jobid context/getPendingIds"
+ style="text-align:center">
+ <div tal:define="job context/?jobid">
+ <td><input type="radio" checked
+ tal:attributes="name jobid"></td>
+ <td><input type="radio" value="approve"
+ tal:attributes="name jobid"></td>
+ <td><input type="radio" value="discard"
+ tal:attributes="name jobid"></td>
+ <td><a href="jobid" tal:attributes="href jobid"
+ tal:content="job/summary">A job summary </a>
+
+ (<a href="user at host.com"
+ tal:attributes="href string:mailto:${job/submitter}"
+ ><span tal:replace="job/submitter">user at host.com</span></a>)
+
+ </td>
+ </div>
+ </tr>
+ <tr><td colspan="3">
+ <input type="submit" value="Submit" i18n:attributes="value=Submit">
+ <a href="." i18n:translate="back-to-summary">Back to summary</a>
+ </td></tr>
+ </table>
+ </form>
+
+</body>
+</html>
=== zopeproducts/demo/jobboard/thanks.pt 1.2 => 1.3 ===
--- /dev/null Tue Dec 16 04:46:36 2003
+++ zopeproducts/demo/jobboard/thanks.pt Tue Dec 16 04:46:36 2003
@@ -0,0 +1,26 @@
+<html i18n:domain="jobboard">
+<head>
+<title i18n:translate="thank-you-title">Thank you for your job
+submission</title>
+</head>
+<body>
+<h1 i18n:translate="thank-you-title">Thank you for your job submission</h1>
+
+<p i18n:translate="thank-you-wherenext">Our site manager will review
+and publish it shortly. Please use one of the following links to
+continue to use our site:
+</p>
+
+<ul>
+
+<li><a href="/" i18n:translate="back-to-site-home">Back to site home</a>
+
+<p><li><a href="." i18n:translate="back-to-job-board">Back to job board</a>
+
+<p><li><a href="edit.html" i18n:translate="submit-another">Submit
+another job</a>
+
+</ul>
+
+</body>
+</html>
More information about the Zope3-Checkins
mailing list