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

Last change on this file was 1783, checked in by Henrik Bettermann, 17 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
RevLine 
[1783]1<metal:definetemplate tal:define="template here/main_template/macros/master">
[1575]2<metal:block define-macro="contact_student_form">
[1737]3<metal:body use-macro=template>
[1220]4    <metal:main fill-slot="main"
5                tal:define="member python:context.portal_membership.getAuthenticatedMember();
[1455]6                        info context/getStudentBaseInfo;
[1575]7                        subject python:context.REQUEST.get('subject');
8                        continue python:context.REQUEST.get('continue')
[891]9                        ">
10      <span tal:condition="not: info">
[1220]11        <span tal:content="here/illegal_view" />
12      </span>                       
[891]13   
[1575]14      <span tal:condition="python: info and subject">
[891]15      <h3>Contact Student</h3>
16      <br />
[1455]17      <span tal:condition="not:info/student/email">
[891]18      Sorry, the student did not provide an email address.
19      </span>
[1455]20      <span tal:condition="info/student/email">
[891]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"
[1455]28             tal:attributes="value info/student/email"/>                   
[1575]29      <input type="hidden" name="probtype" type="text" id="probtype"
30             tal:attributes="value subject"/>     
[1595]31      <input type="hidden" name="action" type="text" id="action"
32             tal:attributes="value continue"/> 
[1575]33             
[891]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>
[1455]40             <span tal:content="info/student/name" />
[891]41          </td>
42        </tr>
43        <tr>
44          <td>
45             <strong>Student's Email: </strong>
46          </td>
47          <td>
[1455]48             <span tal:content="info/student/email" />
[891]49          </td>
50        </tr>
51        <tr>
[1575]52          <td valign="top">
53             <strong>Reason of Notification: </strong>
[891]54          </td>
[1575]55          <td valign="bottom">
56             <span tal:content="subject" />
[891]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">
[1575]75            <input type="submit" name="."
76                       tal:attributes="name string:${continue}:method"
[894]77                       class="context" value="Continue" />
78      </form>     
[891]79      </span>
80    </metal:main>
[1220]81</metal:body>
[1737]82</metal:block>
83</metal:definetemplate>
Note: See TracBrowser for help on using the repository browser.