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

Last change on this file since 4002 was 3458, checked in by joachim, 17 years ago

trying to make a more clearer getMemberInfo,
do not use student.Title
basic function tested, not tested for student without data.

File size: 3.0 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:replace="info/student_name"></span>
30          </td>
31        </tr>
32        <tr>
33          <td>
34             <strong>Student's Email: </strong>
35          </td>
36          <td>
37             <span tal:content="info/email" />
38          </td>
39        </tr>
40        <tr>
41          <td>
42             <strong>Subject: </strong>
43          </td>
44          <td>
45              <select name="probtype" class="boxgreen" id="probtype">
46                <option>Your SRP Authentication Data</option>
47                <option>Your Password</option>
48                <option>Your Application PIN</option>
49                <option>Your Student Id</option>
50                <option>Message from SRP Administrator</option>
51              </select>       
52          </td>
53        </tr>       
54        <tr>
55          <td valign="top">
56             <strong>Your Message:</strong>
57          </td>
58          <td>
59             <textarea name="commt" rows="10" cols="60" id="commt" tal:content="info/message"></textarea>
60          </td>
61        </tr>
62        <tr tal:condition="info/with_email">
63          <td>&nbsp;</td>
64          <td><input name="Submit" type="submit" class="standalone" value="Submit" /><br /><br /></td>
65        </tr>
66
67        <tr tal:condition="not:info/with_email">
68          <td>&nbsp;</td>
69          <td><strong tal:condition="not:info/email">
70              The student did not provide an email address.
71              </strong>
72          </td>
73        </tr>       
74      </table>
75      </form>
76      </span>
77      <form action="mail_next_student" method="post" class="group"
78            tal:attributes="action string:${context/absolute_url}/mail_next_student">
79         <input type="submit" class="context" value="Next Student Id" />
80         <input name="student_id" type="text" size="8">
81      </form>     
82
83    </metal:main>
84</metal:body>
Note: See TracBrowser for help on using the repository browser.