Changeset 1254 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
9 Jan 2007, 22:41:37 (18 years ago)
Author:
Henrik Bettermann
Message:

mail_password_form now available

Location:
WAeUP_SRP/trunk/skins
Files:
2 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getMemberInfo.py

    r1231 r1254  
    4646info['app_doc'] = student.application.getContent()
    4747info['clear_doc'] = student.clearance.getContent()
    48 #info['password'] = member.getPassword()
     48info['password'] = context.waeup_tool.getCredential(student_id)
     49
     50if info['per_doc'].email:
     51    info['email'] = info['per_doc'].email
     52else:
     53    info['email'] = info['app_doc'].app_email
    4954
    5055msg="""
     
    5358Matriculation Number: %s
    5459JAMB Registration Number: %s
    55 Email address in application data: %s
    56 Email address in personal data: %s
     60Email Address in Application Data: %s
     61Email Address in Personal Data: %s
    5762Date of Birth: %s
    58 Password:
     63Password: %s
    5964
    6065"""
     
    6873    info['per_doc'].email,
    6974    info['clear_doc'].birthday,
     75    info['password']
    7076    )
    7177
  • WAeUP_SRP/trunk/skins/waeup_student/mail_password_form.pt

    r1231 r1254  
    1111      <h3>Mail Authentification Data</h3>
    1212      <br />
    13       <span tal:condition="not:info/per_doc/email">
     13      <span tal:condition="not:info/email">
    1414      Sorry, the student did not provide an email address.
    1515      </span>
    16       <span tal:condition="info/per_doc/email">
     16      <span tal:condition="info/email">
    1717      <form id="form1" name="form1" method="post" action="mail2student">
    1818
     
    2222             tal:attributes="value python:member.getProperty('email',None)"/>             
    2323      <input type="hidden" name="student_email" type="text" id="student_email"
    24              tal:attributes="value info/per_doc/email"/>                   
     24             tal:attributes="value info/email"/>                   
    2525
    2626      <table width="100%" border="0" cellspacing="5" cellpadding="0">
     
    3838          </td>
    3939          <td>
    40              <span tal:content="info/per_doc/email" />
     40             <span tal:content="info/email" />
    4141          </td>
    4242        </tr>
    4343        <tr>
    4444          <td>
    45              <strong>Subject Line: </strong>
     45             <strong>Subject: </strong>
    4646          </td>
    4747          <td>
     
    7070      </form>
    7171      </span>
    72       <form tal:attributes="action string: ${context/portal_url}/campus/students" method="post" class="group">
     72      <form action="mail_next_student" method="post" class="group">
    7373         <input type="submit" class="context" value="Next Student Id" />
    74          <input name="id" type="text" size="8">
     74         <input name="student_id" type="text" size="8">
    7575      </form>     
    7676      </span>
  • WAeUP_SRP/trunk/skins/waeup_student/student_view.pt

    r1220 r1254  
    4040            </td>
    4141          </tr>
    42           <tr tal:condition="python:info['member'].id in ('admin','joachim','kehindesamuel','med',)">
    43             <td colspan="3">     
    44               <a href=""
    45                  target="member"
    46                  onclick="javascript:window.open('','member','width=300, height=300, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')"
    47                  tal:attributes="href string:${context/portal_url}/portal_directories/students/${info/id}/manage_main">
    48                 <strong>Member Record</strong>
    49               </a>
    50             </td>
    51           </tr>
    5242        </table>
     43       
     44                 
     45         <span tal:condition="python:info['member'].id in ('admin','joachim','kehindesamuel','med',)">
     46         <br />
     47         <form action="mail_password_form" method="post" class="group">
     48            <input type="submit" class="context" value="Send Email with Authentification Data" />
     49         </form>
     50         </span>
     51
     52
     53       
    5354
    5455    <table tal:condition="is_student" class="contentListing" width="" summary="content layout" id="folder_content">     
Note: See TracChangeset for help on using the changeset viewer.