[1596] | 1 | <metal:block define-macro="contact_student_form"> |
---|
[1220] | 2 | <metal:body use-macro="here/main_template/macros/master"> |
---|
| 3 | <metal:main fill-slot="main" |
---|
| 4 | tal:define="member python:context.portal_membership.getAuthenticatedMember(); |
---|
[1455] | 5 | info context/getStudentBaseInfo; |
---|
[1596] | 6 | subject python:context.REQUEST.get('subject'); |
---|
| 7 | continue python:context.REQUEST.get('continue') |
---|
[891] | 8 | "> |
---|
| 9 | <span tal:condition="not: info"> |
---|
[1220] | 10 | <span tal:content="here/illegal_view" /> |
---|
| 11 | </span> |
---|
[891] | 12 | |
---|
[1596] | 13 | <span tal:condition="python: info and subject"> |
---|
[891] | 14 | <h3>Contact Student</h3> |
---|
| 15 | <br /> |
---|
[1455] | 16 | <span tal:condition="not:info/student/email"> |
---|
[891] | 17 | Sorry, the student did not provide an email address. |
---|
| 18 | </span> |
---|
[1455] | 19 | <span tal:condition="info/student/email"> |
---|
[891] | 20 | <form id="form1" name="form1" method="post" action="mail2student"> |
---|
| 21 | |
---|
| 22 | <input type="hidden" name="co_name" type="text" id="co_name" |
---|
| 23 | tal:attributes="value python:member.getProperty('fullname',None)"/> |
---|
| 24 | <input type="hidden" name="co_email" type="text" id="co_email" |
---|
| 25 | tal:attributes="value python:member.getProperty('email',None)"/> |
---|
| 26 | <input type="hidden" name="student_email" type="text" id="student_email" |
---|
[1455] | 27 | tal:attributes="value info/student/email"/> |
---|
[1596] | 28 | <input type="hidden" name="probtype" type="text" id="probtype" |
---|
| 29 | tal:attributes="value subject"/> |
---|
[1597] | 30 | <input type="hidden" name="action" type="text" id="action" |
---|
| 31 | tal:attributes="value continue"/> |
---|
[1596] | 32 | |
---|
[891] | 33 | <table width="100%" border="0" cellspacing="5" cellpadding="0"> |
---|
| 34 | <tr> |
---|
| 35 | <td width="150px"> |
---|
| 36 | <strong>Student's Name: </strong> |
---|
| 37 | </td> |
---|
| 38 | <td> |
---|
[1455] | 39 | <span tal:content="info/student/name" /> |
---|
[891] | 40 | </td> |
---|
| 41 | </tr> |
---|
| 42 | <tr> |
---|
| 43 | <td> |
---|
| 44 | <strong>Student's Email: </strong> |
---|
| 45 | </td> |
---|
| 46 | <td> |
---|
[1455] | 47 | <span tal:content="info/student/email" /> |
---|
[891] | 48 | </td> |
---|
| 49 | </tr> |
---|
| 50 | <tr> |
---|
[1596] | 51 | <td valign="top"> |
---|
| 52 | <strong>Reason of Notification: </strong> |
---|
[891] | 53 | </td> |
---|
[1596] | 54 | <td valign="bottom"> |
---|
| 55 | <span tal:content="subject" /> |
---|
[891] | 56 | </td> |
---|
| 57 | </tr> |
---|
| 58 | <tr> |
---|
| 59 | <td valign="top"> |
---|
| 60 | <strong>Your Message:</strong> |
---|
| 61 | </td> |
---|
| 62 | <td> |
---|
| 63 | <textarea name="commt" rows="10" cols="60" id="commt"></textarea> |
---|
| 64 | </td> |
---|
| 65 | </tr> |
---|
| 66 | <tr> |
---|
| 67 | <td> </td> |
---|
| 68 | <td><input name="Submit" type="submit" class="standalone" value="Submit" /><br /><br /></td> |
---|
| 69 | </tr> |
---|
| 70 | </table> |
---|
| 71 | </form> |
---|
| 72 | </span> |
---|
| 73 | <form action="." method="post" class="group"> |
---|
[1596] | 74 | <input type="submit" name="." |
---|
| 75 | tal:attributes="name string:${continue}:method" |
---|
[894] | 76 | class="context" value="Continue" /> |
---|
| 77 | </form> |
---|
[891] | 78 | </span> |
---|
| 79 | </metal:main> |
---|
[1220] | 80 | </metal:body> |
---|
[1596] | 81 | </metal:block> |
---|