Changeset 1418 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
15 Feb 2007, 12:06:04 (18 years ago)
Author:
Henrik Bettermann
Message:

links to athentication mail and student record added

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

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

    r1417 r1418  
    1313acco_cat = context.portal_accommodation
    1414import logging
    15 logger = logging.getLogger('Student')
     15logger = logging.getLogger('Student.Add')
    1616
    1717validate = REQUEST.has_key("cpsdocument_edit_button") and\
     
    6565dict['password'] = password
    6666student_rec = context.getFormattedStudentEntry(context.students_catalog(id = sid)[0])
    67 psm = "Student created with Id: %s and password: %s" % (sid,password)
     67psm = "Student with Id %s and Password %s created!" % (sid,password)
    6868logger.info('"%s","created student","%s"' % (member,sid))
    6969return context.add_student_form(rendered = rendered,
  • WAeUP_SRP/trunk/skins/waeup_student/add_student_form.pt

    r1415 r1418  
    2525            </tr>               
    2626            <tr>
    27               <td>Name</td>
     27              <td>Name:</td>
    2828              <td tal:content="student/name" />
    2929            </tr>               
     
    4141            </tr>       
    4242            <tr>
    43               <td>Matric No</td>
     43              <td>Matric No:</td>
    4444              <td tal:content="student/matric_no" />
    4545            </tr>               
    4646            <tr>
    47               <td>Study Course</td>
     47              <td>Study Course:</td>
    4848              <td tal:content="student/course" />
    49             </tr>               
     49            </tr>       
     50            <tr>
     51              <td>URL:</td>
     52              <td><a tal:attributes="href string:${here/portal_url}/campus/students/${info/sid}">
     53                <span tal:content="string:${here/portal_url}/campus/students/${info/sid}" /> 
     54              </a></td>
     55            </tr>                 
    5056          </table>
     57         <form tal:attributes="action string:${here/portal_url}/campus/students/${info/sid}/mail_password_form" method="post" class="group">
     58            <input type="submit" class="context" value="Send Email with Authentication Data" />
     59         </form>
    5160        </span>
    5261        <span tal:condition="python: mode != 'view'" tal:omit-tag="">
Note: See TracChangeset for help on using the changeset viewer.