Changeset 2489


Ignore:
Timestamp:
31 Oct 2007, 11:15:56 (17 years ago)
Author:
Henrik Bettermann
Message:

fix for students with strange session result course codes
beautify course result views
create_level.py: do not fill grade of carry-over courses; grade is a deprecated catalog field

Location:
WAeUP_SRP/base/skins
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/cps_custom/logged_in.py

    r2485 r2489  
    231231                    lnr = context.getLevelFromResultsCosCode(has_results)
    232232                    dsc['current_level'] = "%d00" % lnr
    233                 elif not has_level and s_review_state == 'school_fee_paid':
     233                elif not has_level and s_review_state == 'school_fee_paid':     
    234234                    lnr = context.getLevelFromResultsCosCode(has_results)
    235                     if dsc['current_verdict'] in ('A','B',):
     235                    cv = context.getVerdict(has_results[0].Verdict)[0]
     236                    if cv in ('A','B',):
    236237                        lnr += 1
    237238                    dsc['current_level'] = "%d00" % lnr
     239                    dsc['previous_verdict'] = cv
    238240                if sc_review_state != 'opened':
    239241                    wftool.doActionFor(study_course,'open')
  • WAeUP_SRP/base/skins/waeup_student/course_registration_slip.pt

    r2031 r2489  
    6060          <h4>Carryover Courses</h4>
    6161          <br />
    62           <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">
     62          <table class="contentListing" width="100%" summary="content layout" id="folder_content">
    6363            <tr tal:repeat="row info/carry_overs"
    6464                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    65               <td width="78%" tal:content="row/title"></td>
    66               <td width="10%" tal:content="row/code"></td>
    67               <td width="2%">S<span tal:content="row/semester" /></td>
    68               <td width="2%" tal:content="row/credits"></td>
    69               <td width="8%" tal:content="row/grade|string:"></td>
     65              <td width="72%" tal:content="row/title"></td>
     66              <td align="center" width="10%" tal:content="row/code"></td>
     67              <td align="center" width="2%">S<span tal:content="row/semester" /></td>
     68              <td align="center" width="2%" tal:content="row/credits"></td>
     69              <td align="center" width="14%"> <span tal:content="row/coe|nothing" /></td>
    7070            </tr>
    7171          </table>
     
    7676          <tr tal:repeat="row info/normal"
    7777              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    78             <td width="78%" tal:content="row/title"></td>
    79             <td width="10%" tal:content="row/code"></td>
    80             <td width="2%">S<span tal:content="row/semester" /></td>
    81             <td width="2%" tal:content="row/credits"></td>
    82             <td width="8%" tal:content="row/coe|nothing"></td>
     78            <td width="72%" tal:content="row/title"></td>
     79            <td align="center" width="10%" tal:content="row/code"></td>
     80            <td align="center" width="2%">S<span tal:content="row/semester" /></td>
     81            <td align="center" width="2%" tal:content="row/credits"></td>
     82            <td align="center" width="14%" tal:content="row/coe|nothing"></td>
    8383          </tr>
    8484          <tr>
    85             <th colspan="2" align="right">Total Credits:</th>
    86             <td></td>
     85            <td width="82%" colspan="2" align="right">Total Credits:</td>
     86            <td width="2%">&nbsp;</td>
    8787            <td width="2%" tal:content="info/credits_total"></td>
     88            <td width="14%">&nbsp;</td>
    8889          </tr>
    8990        </table>
  • WAeUP_SRP/base/skins/waeup_student/create_level.py

    r2472 r2489  
    108108        d = context.getCourseInfo(co.CosCode)
    109109        d['course_id'] = course_id
    110         d['grade'] = co.GRADE
     110        #d['grade'] = co.GRADE
    111111        d['carry_over'] = carry_over
    112112        # course_id = level.invokeFactory('StudentCourseResult',"%s_co" % course_id)
  • WAeUP_SRP/base/skins/waeup_student/external_study_level_view.pt

    r1980 r2489  
    3636        <h4>Carryover Courses</h4>
    3737        <br />
    38         <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">
     38        <table class="contentListing" width="100%" summary="content layout" id="folder_content" tal:condition="info/carry_overs">
    3939          <tr tal:repeat="row info/carry_overs"
    4040              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    41             <td align="left" valign="middle" style="width: 5px;"
    42                 tal:condition="show_check_boxes">
     41             
     42            <td align="left" valign="middle" width="5%" tal:condition="show_check_boxes">
    4343              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    4444                     tal:define="id row/id"
     
    4848                     />
    4949            </td>
    50             <td width="78%" tal:content="row/title"></td>
    51             <td width="10%" tal:content="row/code"></td>
    52             <td width="2%">S<span tal:content="row/semester" /></td>
    53             <td width="2%" tal:content="row/credits"></td>
    54             <td width="8%" tal:content="row/grade|string:"></td>
     50            <td width="72%" tal:content="row/title"></td>
     51            <td align="center" width="10%" tal:content="row/code"></td>
     52            <td align="center" width="2%">S<span tal:content="row/semester" /></td>
     53            <td align="center" width="2%" tal:content="row/credits"></td>
     54            <td align="center" width="9%" tal:content="row/coe|nothing"></td>
    5555          </tr>
    5656        </table>
    5757        </span>
    5858        <br />
     59       
    5960        <h4>Session Courses</h4>
    6061        <br />
    61       <div class="" tal:condition="not: info/normal">
    62         Your faculty has not yet provided the list of courses for your certificate. Please contact your faculty!
    63       </div>
    64         <table class="contentListing" width="100%" id="folder_content"
    65                tal:condition="info/normal">     
     62        <div class="" tal:condition="not: info/normal">
     63          Your faculty has not yet provided the list of courses for your certificate. Please contact your faculty!
     64        </div>
     65         
     66         <table class="contentListing" width="100%" id="folder_content" tal:condition="info/normal">     
    6667          <tr tal:repeat="row info/normal"
    6768              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    68             <td align="left" valign="middle" style="width: 5px;"
    69                       tal:condition="show_check_boxes">
     69             
     70            <td align="left" valign="middle" width="5%" tal:condition="show_check_boxes">
    7071              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    7172                     tal:define="id row/id"
     
    7576                     />
    7677            </td>
    77             <td width="78%" tal:content="row/title"></td>
    78             <td width="10%" tal:content="row/code"></td>
    79             <td width="2%">S<span tal:content="row/semester" /></td>
    80             <td width="2%" tal:content="row/credits"></td>
    81             <td width="8%" tal:content="row/coe|nothing"></td>
    82           </tr>
    83           <tr>
    84             <td tal:condition="show_check_boxes" colspan="1"></td>
    85             <td colspan="1"></td>
    86             <th colspan="2">Total Credits:</th>
    87             <td align="center" width="2%" tal:content="info/credits_total"></td>
     78            <td width="72%" tal:content="row/title"></td>
     79            <td align="center" width="10%" tal:content="row/code"></td>
     80            <td align="center" width="2%">S<span tal:content="row/semester" /></td>
     81            <td align="center" width="2%" tal:content="row/credits"></td>
     82            <td align="center" width="9%" tal:content="row/coe|nothing"></td>
     83          </tr>
     84          <tr>
     85            <td width="5%" tal:condition="show_check_boxes">&nbsp;</td>
     86            <td width="82%" colspan="2" align="right">Total Credits:</td>
     87            <td width="2%">&nbsp;</td>
     88            <td width="2%" align="center" tal:content="info/credits_total"></td>
     89            <td width="9%">&nbsp;</td>
    8890          </tr>
    8991        </table>
     
    138140                <input tal:condition="python: review_state in ('courses_registered', 'courses_validated',)" type="submit" name="reject_courses:method"
    139141                       class="context" value="Reject" />
     142                <input type="hidden" name="action_after_validate" type="text" id="action_after_validate"
     143                       tal:attributes="value string:external_study_level_view"/>                         
     144                <input type="hidden" name="action_after_reject" type="text" id="action_after_reject"
     145                       tal:attributes="value string:external_contact_student_form"/>                           
    140146
    141147            </td>
  • WAeUP_SRP/base/skins/waeup_student/study_level_view.pt

    r2448 r2489  
    5555                   />
    5656          </td>
    57           <td width="66%" tal:content="row/title"></td>
     57          <td width="71%" tal:content="row/title"></td>
    5858          <td align="center" width="10%" tal:content="row/code"></td>
    5959          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
     
    8585                   />
    8686          </td>
    87           <td width="66%" tal:content="row/title"></td>
     87          <td width="71%" tal:content="row/title"></td>
    8888          <td align="center" width="10%" tal:content="row/code"></td>
    8989          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
Note: See TracChangeset for help on using the changeset viewer.