source: WAeUP_SRP/trunk/skins/waeup_student/contact_student_form.pt @ 2006

Last change on this file since 2006 was 1783, checked in by Henrik Bettermann, 18 years ago
  • assertViewable removed and page templates adjusted, so that no traceback occurs.
  • 'Previous Session' action added
  • waeup_content_master.pt removed
  • and more
File size: 3.1 KB
Line 
1<metal:definetemplate tal:define="template here/main_template/macros/master">
2<metal:block define-macro="contact_student_form">
3<metal:body use-macro=template>
4    <metal:main fill-slot="main"
5                tal:define="member python:context.portal_membership.getAuthenticatedMember();
6                        info context/getStudentBaseInfo;
7                        subject python:context.REQUEST.get('subject');
8                        continue python:context.REQUEST.get('continue')
9                        ">
10      <span tal:condition="not: info">
11        <span tal:content="here/illegal_view" />
12      </span>                       
13   
14      <span tal:condition="python: info and subject">
15      <h3>Contact Student</h3>
16      <br />
17      <span tal:condition="not:info/student/email">
18      Sorry, the student did not provide an email address.
19      </span>
20      <span tal:condition="info/student/email">
21      <form id="form1" name="form1" method="post" action="mail2student">
22
23      <input type="hidden" name="co_name" type="text" id="co_name"
24             tal:attributes="value python:member.getProperty('fullname',None)"/>
25      <input type="hidden" name="co_email" type="text" id="co_email"
26             tal:attributes="value python:member.getProperty('email',None)"/>             
27      <input type="hidden" name="student_email" type="text" id="student_email"
28             tal:attributes="value info/student/email"/>                   
29      <input type="hidden" name="probtype" type="text" id="probtype"
30             tal:attributes="value subject"/>     
31      <input type="hidden" name="action" type="text" id="action"
32             tal:attributes="value continue"/> 
33             
34      <table width="100%" border="0" cellspacing="5" cellpadding="0">
35        <tr>
36          <td width="150px">
37             <strong>Student's Name: </strong>
38          </td>
39          <td>
40             <span tal:content="info/student/name" />
41          </td>
42        </tr>
43        <tr>
44          <td>
45             <strong>Student's Email: </strong>
46          </td>
47          <td>
48             <span tal:content="info/student/email" />
49          </td>
50        </tr>
51        <tr>
52          <td valign="top">
53             <strong>Reason of Notification: </strong>
54          </td>
55          <td valign="bottom">
56             <span tal:content="subject" />
57          </td>
58        </tr>       
59        <tr>
60          <td valign="top">
61             <strong>Your Message:</strong>
62          </td>
63          <td>
64             <textarea name="commt" rows="10" cols="60" id="commt"></textarea>
65          </td>
66        </tr>
67        <tr>
68          <td>&nbsp;</td>
69          <td><input name="Submit" type="submit" class="standalone" value="Submit" /><br /><br /></td>
70        </tr>
71      </table>
72      </form>
73      </span>
74      <form action="." method="post" class="group">
75            <input type="submit" name="."
76                       tal:attributes="name string:${continue}:method"
77                       class="context" value="Continue" />
78      </form>     
79      </span>
80    </metal:main>
81</metal:body>
82</metal:block>
83</metal:definetemplate>
Note: See TracBrowser for help on using the repository browser.