Ignore:
Timestamp:
31 Jan 2007, 16:24:18 (18 years ago)
Author:
joachim
Message:

course registration

M waeup_student/student_index.py
M waeup_student/study_level_view.pt
M waeup_student/getStudyLevelInfo.py
M waeup_student/study_course_view.pt
M waeup_student/getStudyCourseInfo.py
AM waeup_academics/getCourseInfo.py

reindex entry_mode

M waeup_utilities/getFromData_entry_mode.py
M waeup_utilities/reindex_entry_mode.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt

    r913 r1380  
    1 <metal:html tal:define="info context/getStudyLevelInfo;
    2             is_so context/isSectionOfficer;
    3             s_info context/getStudentInfo;"
    4             >
     1<metal:html>
    52  <metal:body use-macro="here/waeup_content_master/macros/master">
    6     <metal:block fill-slot="header">
     3    <metal:block fill-slot="header"
     4                 tal:define="global info context/getStudyLevelInfo;
     5                 global is_so context/isSectionOfficer;"
     6                 >
    77      <a href=""
    88         tal:attributes="href string:${here/academicsParent}">
     
    1111      </a>
    1212      <h3>
    13          <span tal:condition="python:is_so and s_info">
    14            <span tal:content="s_info/student/Title" />:
    15          </span>
    16          <span tal:content="here/title_or_id" />
     13        <span tal:condition="python:is_so and s_info">
     14          <span tal:content="info/student/name" />:
     15        </span>
     16        <span tal:content="here/title_or_id" />
    1717      </h3>
    1818      <br />
    19       <div tal:condition="python:0" tal:content="info/container_path"/>
    20       <div tal:condition="python:0" tal:content="info/cert_id"/>
    21       <div tal:condition="python:0" tal:content="info/gpa"/>
    2219    </metal:block>
    2320    <metal:main fill-slot="main" tal:condition="python:1">
    24       <span tal:omit-tag="" 
    25             tal:content="structure python: info['doc'].render(layout_mode='view')" />
    26      
    27       <form action="" method="post" class="group"
    28             tal:attributes="action info/action"
    29             >
     21      <form action="." method="post" class="group">
     22        <h3>Carryover Courses</h3>
    3023        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
    31           <span tal:repeat="sem python:('first','second')">
    32             <tr><th colspan="3" tal:content="python: test(sem == 'first','First Semester', 'Second Semester')" />
    33             <tr tal:repeat="row python: info[sem]"
    34                 tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    35               <td align="left" valign="middle" style="width: 5px;"
    36                   tal:condition="python:1 and is_so">
    37                 <input type="checkbox" name="ids:list" value="" id="" class="noborder"
    38                        tal:condition="is_so"
    39                        tal:define="id row/id"
    40                        tal:attributes="value id;
    41                        id python:'cb_' + id;
    42                        checked python:id in info['choosen_ids'];"
    43                        />
    44                 </td>
    45                 <td><a href="view" tal:attributes="href string:${row/url}">
    46                     <strong tal:content="row/title" /></a> </td>
    47                 <td tal:content="row/id"></td>
    48                 <td tal:content="row/semester"></td>
    49                 <td tal:content="row/credits"></td>
    50                 <td tal:condition="is_so" tal:content="row/score"></td>
    51                 <td tal:content="row/grade"></td>
    52                 <td tal:content="row/weight"></td>
    53                 <td tal:condition="python:0" tal:content="row/sum"></td>
    54                 <td tal:condition="python:0" tal:content="row/count"></td>
    55                 <td tal:condition="row/is_editable" tal:content="row/review_state"> </td>
    56                 <td>
    57                 <a tal:condition="row/is_editable"
    58                     href="edit" tal:attributes="href string:${row/url}/external_edit_form"
    59                     target="edit"
    60                     onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
    61                     [edit]
    62                     </a>
    63                 </td>
    64               </tr>
    65             </span>
    66           </table>
     24          <tr tal:repeat="row info/carry_overs"
     25              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     26            <td align="left" valign="middle" style="width: 5px;">
     27              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
     28                     tal:define="id row/code"
     29                     tal:attributes="value id;
     30                     id python:'cb_' + id;
     31                     checked python:id in info['choosen_ids'];"
     32                     />
     33            </td>
     34            <td width="80%" tal:content="row/title"></td>
     35            <td width="8%" tal:content="row/code"></td>
     36            <td width="2%" tal:content="row/semester"></td>
     37            <td width="2%" tal:content="row/credits"></td>
     38            <td width="8%" tal:content="row/grade|nothing"></td>
     39          </tr>
     40        </table>
     41        <h3>Session Courses</h3>
     42        <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
     43          <tr tal:repeat="row info/normal"
     44              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
     45            <td align="left" valign="middle" style="width: 5px;">
     46              <input type="checkbox" name="ids:list" value="" id="" class="noborder"
     47                     tal:define="id row/code"
     48                     tal:attributes="value id;
     49                     id python:'cb_' + id;
     50                     checked python:id in info['choosen_ids'];"
     51                     />
     52            </td>
     53            <td width="80%" tal:content="row/title"></td>
     54            <td width="8%" tal:content="row/code"></td>
     55            <td width="2%" tal:content="row/semester"></td>
     56            <td width="2%" tal:content="row/credits"></td>
     57            <td width="8%" tal:content="row/coe|nothing"></td>
     58          </tr>
     59        </table>
    6760        <table width="100%" cellspacing="0" cellpadding="2"
    6861               class="folderButtons">
     
    7063            <td align="left" valign="top" rowspan="3"></td>
    7164            <td align="left" valign="top">
    72               <span tal:condition="python:1 and is_so">
     65              <span tal:condition="python:1">
    7366                <input type="button" value="button_select_all" class="context"
    7467                       onclick="someJavaScriptFunctionThatWillBeReplaced"
     
    7770                       % (cpsmcat('button_select_all'), cpsmcat('button_deselect_all'))"
    7871                       />
    79                 <input tal:condition="python:0" type="submit" name="approve_checked:method"
    80                        class="context" value="Approve" />
     72                <input tal:condition="python:1" type="submit" name="register_checked:method"
     73                       class="context" value="Register" />
    8174                <input tal:condition="python:0" type="submit" name="retract_checked:method"
    8275                       class="context" value="Retract" />
Note: See TracChangeset for help on using the changeset viewer.