source: WAeUP_SRP/trunk/skins/waeup_student/mail_password_form.pt @ 2135

Last change on this file since 2135 was 2059, checked in by joachim, 17 years ago

fix for #167 see there

File size: 3.1 KB
Line 
1<metal:body use-macro="here/main_template/macros/master">
2    <metal:main fill-slot="main"
3                tal:define="member python:context.portal_membership.getAuthenticatedMember();
4                            info context/getMemberInfo;
5                        ">
6      <span tal:condition="not: info">
7        <span tal:content="here/illegal_view" />
8      </span>                       
9   
10      <span tal:condition="info">
11      <h3>Send Mail to Student!</h3>
12      <br />
13
14      <form id="form1" name="form1" method="post" action="mail2student">
15
16      <input type="hidden" name="co_name" type="text" id="co_name"
17             tal:attributes="value python:member.getProperty('fullname',None)"/>
18      <input type="hidden" name="co_email" type="text" id="co_email"
19             tal:attributes="value python:member.getProperty('email',None)"/>             
20      <input type="hidden" name="student_email" type="text" id="student_email"
21             tal:attributes="value info/email"/>                   
22
23      <table width="100%" border="0" cellspacing="5" cellpadding="0">
24        <tr>
25          <td width="150px">
26             <strong>Student's Name: </strong>
27          </td>
28          <td>
29             <span tal:condition="info/student/Title" tal:content="info/student/Title" />
30             <span tal:condition="not:info/student/Title">N/A</span>
31          </td>
32        </tr>
33        <tr>
34          <td>
35             <strong>Student's Email: </strong>
36          </td>
37          <td>
38             <span tal:content="info/email" />
39          </td>
40        </tr>
41        <tr>
42          <td>
43             <strong>Subject: </strong>
44          </td>
45          <td>
46              <select name="probtype" class="boxgreen" id="probtype">
47                <option>Your SRP Authentication Data</option>
48                <option>Your Password</option>
49                <option>Your Application PIN</option>
50                <option>Your Student Id</option>
51                <option>Message from SRP Administrator</option>
52              </select>       
53          </td>
54        </tr>       
55        <tr>
56          <td valign="top">
57             <strong>Your Message:</strong>
58          </td>
59          <td>
60             <textarea name="commt" rows="10" cols="60" id="commt" tal:content="info/message"></textarea>
61          </td>
62        </tr>
63        <tr tal:condition="python: info['email'] and info['email']!='N/A'">
64          <td>&nbsp;</td>
65          <td><input name="Submit" type="submit" class="standalone" value="Submit" /><br /><br /></td>
66        </tr>
67
68        <tr tal:condition="not:info/email">
69          <td>&nbsp;</td>
70          <td><strong tal:condition="not:info/email">
71              The student did not provide an email address.
72              </strong>
73          </td>
74        </tr>       
75      </table>
76      </form>
77      </span>
78      <form action="mail_next_student" method="post" class="group"
79            tal:attributes="action string:${context/absolute_url}/mail_next_student">
80         <input type="submit" class="context" value="Next Student Id" />
81         <input name="student_id" type="text" size="8">
82      </form>     
83
84    </metal:main>
85</metal:body>
Note: See TracBrowser for help on using the repository browser.