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

Last change on this file since 1302 was 1282, checked in by Henrik Bettermann, 18 years ago

also shown when no email address provided

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>Mail Authentification Data</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">na</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              </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="python: info['email'] and info['email']!='na'">
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/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         <input type="submit" class="context" value="Next Student Id" />
79         <input name="student_id" type="text" size="8">
80      </form>     
81
82    </metal:main>
83</metal:body>
Note: See TracBrowser for help on using the repository browser.