Changeset 2649 for WAeUP_SRP/base


Ignore:
Timestamp:
13 Nov 2007, 22:12:34 (17 years ago)
Author:
Henrik Bettermann
Message:

minor corrections

don't show 'contact your faculty' message if spillover student

Location:
WAeUP_SRP/base/skins/waeup_student
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/course_registration_slip.pt

    r2630 r2649  
    8181       <span tal:repeat="sem python:('1','2')">       
    8282                   
    83         <th colspan="3" tal:content="python: test(sem == '1','First Semester', 'Second Semester')" />               
     83        <tr><th colspan="3" tal:content="python: test(sem == '1','First Semester', 'Second Semester')" /></tr>           
    8484        <tr tal:repeat="row python: test(sem == '1',info['normal1'],info['normal2'])"
    8585            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     
    120120       
    121121        </span>       
    122        
    123122          <tr>
    124123            <td width="84%" colspan="2" align="right">Total Credits:</td>
  • WAeUP_SRP/base/skins/waeup_student/getStudentLevelsVoc.py

    r2647 r2649  
    1919            voc += ("%s" % l,"%s (spillover)" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1))),
    2020        elif repeat > 0:
    21             voc += ("%s" % l,"%s (on %d. probation)" % 
     21            voc += ("%s" % l,"%s (on %d. probation)" %
    2222                    (context.portal_vocabularies.levels.get("%d00" % (level_nr)),
    2323                                                            (repeat // 10))),
    2424        else:
    25             voc += ("%s" % l,"%s" % 
     25            voc += ("%s" % l,"%s" %
    2626                    (context.portal_vocabularies.levels.get("%d00" % (level_nr)))),
    2727    return voc
    28        
     28
    2929try:
    3030    ikey = int(key)
     
    3636level = context.portal_vocabularies.levels.get("%d00" % level_nr)
    3737if level_nr > end_level/100:
    38     return "%s spillover" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1))
     38    return "%s Spillover" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1))
    3939
    4040if repeat > 0:
    41     level += " on %d. probation" % (repeat // 10)
     41    level += " on %d. Probation" % (repeat // 10)
    4242
    4343return level
  • WAeUP_SRP/base/skins/waeup_student/getStudyLevelInfo.py

    r2614 r2649  
    8686info['normal3'] = normal3
    8787
     88info['data_missing'] = not info['normal1'] and not info['normal2'] and not info['normal3']
     89info['spillover'] = student.level > student.end_level
     90
    8891students_object = context.portal_url.getPortalObject().campus.students
    8992student = getattr(students_object, student_id)
  • WAeUP_SRP/base/skins/waeup_student/study_level_view.pt

    r2640 r2649  
    6767      </span>
    6868      <br />
     69
     70      <div class="" tal:condition="python: info['data_missing'] and not info['spillover']">
     71        <font color="red">Your faculty has not yet provided the list of courses for your certificate. Please contact your faculty!</font>
     72        <br /><br />
     73      </div>
     74       
     75      <span tal:condition="not:info/data_missing" tal:omit-tag="">
    6976      <h4>Session Courses</h4>
    7077      <br />
    71     <div class="" tal:condition="python: not (info['normal1'] or info['normal2'] or info['normal3'])">
    72       <font color="red">Your faculty has not yet provided the list of courses for your certificate. Please contact your faculty!</font>
    73       <br /><br />
    74     </div>
     78
    7579      <table class="contentListing" width="100%" id="folder_content">
    7680       
     
    140144        </tr>
    141145      </table>
    142 
     146      </span>
    143147     
    144148   
Note: See TracChangeset for help on using the changeset viewer.