Changeset 1144


Ignore:
Timestamp:
28 Dec 2006, 20:48:11 (18 years ago)
Author:
Henrik Bettermann
Message:

'Late Clearance' shown on clearance_slip

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

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_pin_form.pt

    r1143 r1144  
    1616        <h3>Start Clearance! </h3>
    1717        <br />
    18         <strong tal:condition="info/penalty">
     18        <div tal:replace="structure rendered_main" />
     19
     20        <br />
     21        <font color="red"><strong tal:condition="info/penalty">
    1922          You are required to pay and obtain a receipt, the sum of Three Thousand Naira Only (N3,000.00)
    2023          as penalty for late clearance as your clearance ended on 22nd December 2006.
    21         </strong>
    22         <br />
    23         <div tal:replace="structure rendered_main" />
    24         <br />
    25         <font color="red">Processing your request may take a while. Please do not press the 'Start' button twice!</font>
    26         <br />
     24        </strong></font>
     25
    2726      </metal:block>
    2827      <metal:block fill-slot="sub">
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_slip.pt

    r1096 r1144  
    66      </span>
    77      <span tal:condition="info">
     8      <div style="text-align: right" tal:condition="info/penalty">
     9      <strong>Late Clearance!</strong></div>
    810           
    911        <h3>Clearance/Eligibility Slip</h3>
  • WAeUP_SRP/trunk/skins/waeup_student/getClearanceInfo.py

    r1141 r1144  
    4444    return None
    4545creation_date = DateTime(res[0].CreationDate)
    46 info['penalty'] = creation_date.lessThan(DateTime('2006/12/10'))\
    47                   and DateTime().greaterThan(DateTime('2006/12/30'))
     46info['penalty'] = creation_date.lessThan(DateTime('2006/12/5'))\
     47                  and DateTime().greaterThan(DateTime('2006/12/24'))
    4848info['id'] = student_id
    4949info['student'] = student
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r1132 r1144  
    2222import logging
    2323logger = logging.getLogger('Student.Info')
     24
     25from DateTime import DateTime
    2426
    2527info = {}
     
    6163##brain = res[-1]
    6264##student = brain.getObject()
     65
     66creation_date = DateTime(student.creation_date)
     67info['penalty'] = creation_date.lessThan(DateTime('2006/12/5'))\
     68                  and DateTime().greaterThan(DateTime('2006/12/24'))
     69
    6370info['review_state'] = wf.getInfoFor(student,'review_state',None)
    6471info['student'] = student
     
    150157    items.append(row)
    151158info['items'] = items
     159
    152160request.set('student_id',student_id)
    153161request.set('student_url',info['url'])
  • WAeUP_SRP/trunk/skins/waeup_student/start_clearance.py

    r1141 r1144  
    1313#ti = context.portal_types[type_name]
    1414#request.set('type_name',type_name)
    15 #wf = context.portal_workflow
     15wf = context.portal_workflow
    1616request=REQUEST
    1717redirect = request.RESPONSE.redirect
Note: See TracChangeset for help on using the changeset viewer.