Ignore:
Timestamp:
9 Nov 2007, 12:04:49 (17 years ago)
Author:
Henrik Bettermann
Message:

resolve #122

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

Legend:

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

    r2579 r2606  
    7474        <br />
    7575        <table class="contentListing" width="100%" summary="content layout" id="folder_content">     
    76           <tr tal:repeat="row info/normal"
    77               tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    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>
    83           </tr>
     76
     77
     78       <span tal:repeat="sem python:('1','2')">       
     79                   
     80        <th colspan="3" tal:content="python: test(sem == '1','First Semester', 'Second Semester')" />               
     81        <tr tal:repeat="row python: test(sem == '1',info['normal1'],info['normal2'])"
     82            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     83          <td align="left" valign="middle" style="width: 5px;"
     84             tal:condition="show_check_boxes">
     85            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
     86                   tal:define="id row/id"
     87                   tal:attributes="value id;
     88                   id python:'cb_' + id;
     89                   checked python:id in info['choosen_ids'];"
     90                   />
     91          </td>
     92          <td width="71%" tal:content="row/title"></td>
     93          <td align="center" width="10%" tal:content="row/code"></td>
     94          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
     95          <td align="center" width="2%" tal:content="row/credits"></td>
     96          <td align="center" width="10%" tal:content="row/coe|nothing"></td>
     97         
     98          <td tal:condition="python:review_state == 'school_fee_paid'" width="5%" align="center">
     99          <a href="edit" tal:attributes="href string:course_edit/${row/code}"
     100          target="edit"
     101          onclick="javascript:window.open('','edit','width=600, height=350, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
     102          [edit]
     103          </a>
     104          </td>         
     105        </tr>
     106       
     107       
     108        <th colspan="3" tal:condition="info/normal3"> Combined</th>               
     109        <tr tal:condition="info/normal3" tal:repeat="row info/normal3"
     110            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     111          <td align="left" valign="middle" style="width: 5px;"
     112             tal:condition="show_check_boxes">
     113            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
     114                   tal:define="id row/id"
     115                   tal:attributes="value id;
     116                   id python:'cb_' + id;
     117                   checked python:id in info['choosen_ids'];"
     118                   />
     119          </td>
     120          <td width="71%" tal:content="row/title"></td>
     121          <td align="center" width="10%" tal:content="row/code"></td>
     122          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
     123          <td align="center" width="2%" tal:content="row/credits"></td>
     124          <td align="center" width="10%" tal:content="row/coe|nothing"></td>
     125         
     126          <td tal:condition="python:review_state == 'school_fee_paid'" width="5%" align="center">
     127          <a href="edit" tal:attributes="href string:course_edit/${row/code}"
     128          target="edit"
     129          onclick="javascript:window.open('','edit','width=600, height=350, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
     130          [edit]
     131          </a>
     132          </td>         
     133        </tr>       
     134       
     135        </span>       
     136       
    84137          <tr>
    85138            <td width="82%" colspan="2" align="right">Total Credits:</td>
  • WAeUP_SRP/base/skins/waeup_student/getStudyLevelInfo.py

    r2486 r2606  
    5555#    return 0.0
    5656
    57 def cmp_semester_id(a,b):
    58     s1 = "%(semester)s%(id)s" % a
    59     s2 = "%(semester)s%(id)s" % b
    60     if s1 == s2:
    61         return 0
    62     if s1 > s2:
    63         return 1
    64     return -1
     57#def cmp_semester_id(a,b):
     58#    s1 = "%(semester)s%(id)s" % a
     59#    s2 = "%(semester)s%(id)s" % b
     60#    if s1 == s2:
     61#        return 0
     62#    if s1 > s2:
     63#        return 1
     64#    return -1
    6565
    6666student_id = context.getStudentId()
     
    9595    course_results.moveResultsHere(context,student_id)
    9696    logger.info("%s initiated moveResultsHere for %s in level %s" % (member_id,student_id,level_id))
    97 credits_total,carry_overs,normal = course_results.getCourses(student_id,level_id)
     97credits_total,carry_overs,normal1,normal2,normal3 = course_results.getCourses(student_id,level_id)
    9898info['credits_total'] = credits_total
    9999max_credits = 50
     
    108108info['carry_overs'] = carry_overs
    109109# normal.sort(cmp_semester_id)
    110 info['normal'] = normal
     110info['normal1'] = normal1
     111info['normal2'] = normal2
     112info['normal3'] = normal3
    111113
    112114students_object = context.portal_url.getPortalObject().campus.students
  • WAeUP_SRP/base/skins/waeup_student/login_student.pt

    r1022 r2606  
    4242    <td>
    4343        <input type="password" id="password" name="__ac_password" size="20"
    44                value="" /></td>
     44               value="" />&nbsp;&nbsp; <font color='red'>Notice: Passwords are case sensitive.  </font>   </td>
    4545    </tr>
    4646    </tbody>
  • WAeUP_SRP/base/skins/waeup_student/student_view.pt

    r2496 r2606  
    6767
    6868        <span tal:repeat="row rows">
    69         <tr tal:condition="python:row['type'] != 'StudentPume'"
    70             tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     69        <tr tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    7170          <td><a href="view" tal:attributes="href string:${row/url}">
    7271            <strong tal:content="row/title" /></a> </td>
  • WAeUP_SRP/base/skins/waeup_student/study_level_view.pt

    r2489 r2606  
    4646        <tr tal:repeat="row info/carry_overs"
    4747            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     48     
    4849          <td align="left" valign="middle" style="width: 5px;"
    4950              tal:condition="show_check_boxes">
     
    6869      <h4>Session Courses</h4>
    6970      <br />
    70     <div class="" tal:condition="not: info/normal">
     71    <div class="" tal:condition="python: not (info['normal1'] or info['normal2'] or info['normal3'])">
    7172      <font color="red">Your faculty has not yet provided the list of courses for your certificate. Please contact your faculty!</font>
    7273      <br /><br />
    7374    </div>
    74       <table class="contentListing" width="100%" id="folder_content"
    75              tal:condition="info/normal">     
    76         <tr tal:repeat="row info/normal"
     75      <table class="contentListing" width="100%" id="folder_content">
     76       
     77        <span tal:repeat="sem python:('1','2')">       
     78                   
     79        <th colspan="3" tal:content="python: test(sem == '1','First Semester', 'Second Semester')" />               
     80        <tr tal:repeat="row python: test(sem == '1',info['normal1'],info['normal2'])"
    7781            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    7882          <td align="left" valign="middle" style="width: 5px;"
     
    9195          <td align="center" width="10%" tal:content="row/coe|nothing"></td>
    9296         
    93          
    94 
    95 
    9697          <td tal:condition="python:review_state == 'school_fee_paid'" width="5%" align="center">
    9798          <a href="edit" tal:attributes="href string:course_edit/${row/code}"
     
    101102          </a>
    102103          </td>         
     104        </tr>
     105       
     106       
     107        <th colspan="3" tal:condition="info/normal3"> Combined</th>               
     108        <tr tal:condition="info/normal3" tal:repeat="row info/normal3"
     109            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     110          <td align="left" valign="middle" style="width: 5px;"
     111             tal:condition="show_check_boxes">
     112            <input type="checkbox" name="ids:list" value="" id="" class="noborder"
     113                   tal:define="id row/id"
     114                   tal:attributes="value id;
     115                   id python:'cb_' + id;
     116                   checked python:id in info['choosen_ids'];"
     117                   />
     118          </td>
     119          <td width="71%" tal:content="row/title"></td>
     120          <td align="center" width="10%" tal:content="row/code"></td>
     121          <td align="center" width="2%">S<span tal:content="row/semester" /></td>
     122          <td align="center" width="2%" tal:content="row/credits"></td>
     123          <td align="center" width="10%" tal:content="row/coe|nothing"></td>
    103124         
    104          
    105         </tr>
     125          <td tal:condition="python:review_state == 'school_fee_paid'" width="5%" align="center">
     126          <a href="edit" tal:attributes="href string:course_edit/${row/code}"
     127          target="edit"
     128          onclick="javascript:window.open('','edit','width=600, height=350, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
     129          [edit]
     130          </a>
     131          </td>         
     132        </tr>       
     133       
     134       
     135       
     136        </span>
     137
    106138        <tr>
    107139          <td tal:condition="show_check_boxes" colspan="1"></td>
Note: See TracChangeset for help on using the changeset viewer.