Changeset 1874


Ignore:
Timestamp:
8 Jun 2007, 22:00:05 (17 years ago)
Author:
Henrik Bettermann
Message:

ticket #252 and more

Location:
WAeUP_SRP/trunk/skins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r1871 r1874  
    6868            payments.getContent().edit(mapping=d)
    6969        student_pume = getattr(student,'pume',None)
    70         s_review_state = context.getStudentReviewState()
     70        s_review_state = context.getStudentReviewState(student.id)
    7171        a_review_state = wftool.getInfoFor(student_app,'review_state',None)
    7272        student_per = getattr(student,'personal',None)
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentWorkflowInfo.py

    r1871 r1874  
    2727#info['student'] = student
    2828info['url'] = student.absolute_url()
    29 review_state = info['review_state'] = context.getStudentReviewState()
     29review_state = info['review_state'] = context.getStudentReviewState(student_id)
    3030info['cr'] = review_state in  ('returning',
    3131                                           'school_fee_paid',
  • WAeUP_SRP/trunk/skins/waeup_student/getStudyLevelInfo.py

    r1872 r1874  
    116116        normal.append(d)
    117117info['credits_total'] = credits_total
    118 info['credits_exceeded'] = credits_total >= 50
     118info['credits_exceeded'] = credits_total > 50
    119119carry_overs.sort(cmp_semester_id)
    120120info['carry_overs'] = carry_overs
  • WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt

    r1872 r1874  
    132132                     ('Do you really want to delete selected courses?', )"
    133133                     />
    134               <input tal:condition="python: 0" type="submit" name="refresh_level:method"
     134              <input tal:condition="python: 1" type="submit" name="refresh_level:method"
    135135                     class="context" value="Update"
    136136                     />
     
    141141                     type="submit" name="register_courses:method"
    142142                     class="context" value="Submit" />
    143               <span tal:condition="info/credits_exceeded">Your credits exceed 50</span>
     143              <span tal:condition="info/credits_exceeded">
     144                  <font color="red"> <strong>Your total credits exceed 50!</strong></font>
     145              </span>
    144146                     
    145147              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
     
    148150              <br /><br />
    149151             
    150               <span tal:condition="python: 0">
     152              <span tal:condition="python: 1">
    151153              <strong>Note:</strong> 'Update' checks for all courses in your certificate and will add them to your course list irrespective of
    152154              prior deletion, i.e. already deleted courses will show up again.
    153155              Please use this function only if you are sure that your faculty has added courses which are not yet on your course list.                               
    154156              </span>
    155               <span tal:condition="python: 1">
     157              <span tal:condition="python: 0">
    156158              <strong>Note:</strong> The 'Update' function has been temporarily disabled.                                 
    157159              </span>             
Note: See TracChangeset for help on using the changeset viewer.