Changeset 1872 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
8 Jun 2007, 19:46:38 (18 years ago)
Author:
joachim
Message:

fix for #252

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

Legend:

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

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

    r1861 r1872  
    11<metal:body use-macro="here/main_template/macros/master">
    2 
    32  <metal:main fill-slot="main"
    43          tal:define="info context/getStudyLevelInfo;">
     
    1514                       review_state info/review_state;
    1615                       view_only info/view_only">       
    17          
    18 
    1916    <div style="text-align: right"
    2017         tal:condition="python:review_state in ('courses_registered','courses_validated',)">
     
    141138                     
    142139              <br /><br />
    143               <input tal:condition="info/normal"
     140              <input tal:condition="not: info/credits_exceeded"
    144141                     type="submit" name="register_courses:method"
    145142                     class="context" value="Submit" />
     143              <span tal:condition="info/credits_exceeded">Your credits exceed 50</span>
    146144                     
    147145              <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
Note: See TracChangeset for help on using the changeset viewer.