[Zope-CVS] CVS: Packages/JobBoardEx - JobView.pt:1.12 edit.pt:1.2 preview.pt:1.2 review.pt:1.2

Guido van Rossum guido@python.org
Mon, 17 Jun 2002 16:45:25 -0400


Update of /cvs-repository/Packages/JobBoardEx
In directory cvs.zope.org:/tmp/cvs-serv28109

Modified Files:
	JobView.pt edit.pt preview.pt review.pt 
Log Message:
Add support for all 4 Job attributes.

=== Packages/JobBoardEx/JobView.pt 1.11 => 1.12 ===
 <head>
-<title>Job #<span tal:replace="context/@@object_name">NN</span></title>
+<title tal:content="context/summary">Job summary goes here</title>
 </head>
 <body>
-  <h3>Job #<span tal:replace="context/@@object_name">NN</span></h3>
+
+  <h3 tal:content="context/summary">Job summary goes here</h3>
 
   <table border=0>
-  <tr><td>Summary:</td>
-      <td tal:content="context/summary">The best job on the net</td>
+  <tr><td>Description:</td>
+      <td tal:content="context/description">Full descripion goes here
+      (multiple lines)
+      </td>
+  </tr>
+  <tr><td>Contact:</td>
+      <td><a href="user@host.com"
+             tal:attributes="href string:mailto:${context/contact}"
+             tal:content="context/contact">user@host.com</a></td>
   </tr>
   </table>
 


=== Packages/JobBoardEx/edit.pt 1.1 => 1.2 ===
     <form action="preview.html" method="post">
     <table border=0>
-    <tr><td>Summary:</td>
-	<td><input name="summary" type="text" value="" size="72">
+    <tr><td>Contributor email:</td>
+	<td><input name="submitter" type="text" value="" size="60">
+	</td>
+    </tr>
+    <tr><td>One-line summary:</td>
+	<td><input name="summary" type="text" value="" size="60">
+	</td>
+    </tr>
+    <tr><td>Full description (no HTML):</td>
+	<td><textarea name="description" cols=60 rows=10 wrap="soft"
+></textarea>
+	</td>
+    </tr>
+    <tr><td>Contact (where to apply):</td>
+	<td><input name="contact" type="text" value="" size="60">
 	</td>
     </tr>
     <tr><td colspan="2">


=== Packages/JobBoardEx/preview.pt 1.1 => 1.2 ===
 <h1>Preview New Job Data</h1>
 
-<p>This is what your job would look like.  To change, use your
-browser's Back button.  To submit, click on the Submit button below.
+<p>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>Your contact email address is recorded as
+<a href="user@host.com"
+   tal:attributes="href string:mailto:${request/submitter}"
+   tal:content="request/submitter">user@host.com</a>.
+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.
 
 <hr>
-  <h3>Job 123</h3>
+
+  <h3 tal:content="request/summary">Job summary goes here</h3>
 
   <table border=0>
-  <tr><td>Summary:</td>
-      <td tal:content="request/summary">The best job on the net</td>
+  <tr><td>Description:</td>
+      <td tal:content="request/description">Full descripion goes here
+      (multiple lines)
+      </td>
+  </tr>
+  <tr><td>Contact:</td>
+      <td><a href="user@host.com"
+             tal:attributes="href string:mailto:${request/contact}"
+	    tal:content="request/contact">user@host.com</a></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 type="submit" value="Submit" />
+
     </form>
 
 </body>


=== Packages/JobBoardEx/review.pt 1.1 => 1.2 ===
     <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">
-	    <span tal:replace="context/?jobid/summary">A job summary
-	    </span></a></td>
+        <td><a href="jobid" tal:attributes="href jobid"
+               tal:content="job/summary">A job summary </a>
+
+            (<a href="user@host.com"
+                tal:attributes="href string:mailto:${job/submitter}"
+             ><span tal:replace="job/submitter">user@host.com</span></a>)
+
+        </td>
+        </div>
     </tr>
     <tr><td colspan="3">
         <input type="submit" value="Submit">