1 | <metal:block define-macro="contact_student_form"> |
---|
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(); |
---|
5 | info context/getStudentBaseInfo; |
---|
6 | subject python:context.REQUEST.get('subject'); |
---|
7 | continue python:context.REQUEST.get('continue') |
---|
8 | "> |
---|
9 | <span tal:condition="not: info"> |
---|
10 | <span tal:content="here/illegal_view" /> |
---|
11 | </span> |
---|
12 | |
---|
13 | <span tal:condition="python: info and subject"> |
---|
14 | <h3>Contact Student</h3> |
---|
15 | <br /> |
---|
16 | <span tal:condition="not:info/student/email"> |
---|
17 | Sorry, the student did not provide an email address. |
---|
18 | </span> |
---|
19 | <span tal:condition="info/student/email"> |
---|
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" |
---|
27 | tal:attributes="value info/student/email"/> |
---|
28 | <input type="hidden" name="probtype" type="text" id="probtype" |
---|
29 | tal:attributes="value subject"/> |
---|
30 | <input type="hidden" name="action" type="text" id="action" |
---|
31 | tal:attributes="value continue"/> |
---|
32 | |
---|
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> |
---|
39 | <span tal:content="info/student/name" /> |
---|
40 | </td> |
---|
41 | </tr> |
---|
42 | <tr> |
---|
43 | <td> |
---|
44 | <strong>Student's Email: </strong> |
---|
45 | </td> |
---|
46 | <td> |
---|
47 | <span tal:content="info/student/email" /> |
---|
48 | </td> |
---|
49 | </tr> |
---|
50 | <tr> |
---|
51 | <td valign="top"> |
---|
52 | <strong>Reason of Notification: </strong> |
---|
53 | </td> |
---|
54 | <td valign="bottom"> |
---|
55 | <span tal:content="subject" /> |
---|
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"> |
---|
74 | <input type="submit" name="." |
---|
75 | tal:attributes="name string:${continue}:method" |
---|
76 | class="context" value="Continue" /> |
---|
77 | </form> |
---|
78 | </span> |
---|
79 | </metal:main> |
---|
80 | </metal:body> |
---|
81 | </metal:block> |
---|