source: WAeUP_SRP/trunk/skins/waeup_student/course_registration_slip.pt @ 7307

Last change on this file since 7307 was 5570, checked in by Henrik Bettermann, 14 years ago

Adjust layout.

File size: 5.6 KB
RevLine 
[2630]1  <metal:body use-macro="here/slip_template/macros/master">
[1883]2  <metal:main fill-slot="main"
3              tal:define="info context/getStudyLevelInfo;"
4              >
5    <span tal:condition="not: info">
6      <span tal:content="here/illegal_view" />
7    </span>
8    <span tal:condition="info" tal:omit-tag="">
9      <span tal:omit-tag=""
10          tal:define="is_so info/is_so;
11          is_ca info/is_ca;
12          show_check_boxes info/show_check_boxes;
13          is_student info/is_student;
[2760]14          validated info/validated;
[5569]15          cv_id info/doc/validated_by|nothing;
16          cv_member python:context.waeup_tool.getOfficerName(cv_id);         
[2760]17          ">
[3475]18      <h3>Course Registration Slip for <span tal:content="info/level_str" /></h3>
[5570]19      <br />
[5569]20      <div tal:condition="python: validated and cv_id">
21        - validated by
22            <span tal:replace="cv_member" /> on <span tal:replace="python:info['doc'].validation_date.aCommon()" /> -
[1575]23      </div>
24      <div tal:condition="not: validated">
25        - not yet validated by Course Adviser -
26      </div>
[5569]27      <div tal:condition="python: validated and not cv_id">
28        - validated by system -
[5570]29      </div>     
30      <br />
[1575]31      <span tal:omit-tag=""
32            tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
33            layout_mode='view_info',
[2579]34            layout_id='student_application')"
[1575]35            />           
36      <table  cellpadding="2" cellspacing="0">
[1883]37        <tr>
38          <td valign="top" width="180px"><span class="dlabel">Faculty Id</span>:
39          </td>
40          <td>
41            <span tal:content="info/student/faculty" />
42          </td>     
43        </tr>
44        <tr>
45          <td valign="top"><span class="dlabel">Department Id</span>:
46          </td>
47          <td>
48            <span tal:content="info/student/department" />
49          </td>     
50        </tr>
51        <tr>
52          <td valign="top"><span class="dlabel">Study Course Id</span>:
53          </td>
54          <td>
55            <span tal:content="info/student/course" />
56          </td>     
57        </tr>
[1516]58      </table>
59      <form action="." method="post" class="group">
60        <span tal:condition="info/carry_overs" tal:omit-tag="">
[1883]61          <h4>Carryover Courses</h4>
62          <br />
[2489]63          <table class="contentListing" width="100%" summary="content layout" id="folder_content">
[1883]64            <tr tal:repeat="row info/carry_overs"
65                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[2630]66              <td width="74%" tal:content="row/title"></td>
[4305]67              <td style='text-align:center' width="10%" tal:content="row/code"></td>
68              <td style='text-align:center' width="2%">S<span tal:content="row/semester" /></td>
69              <td style='text-align:center' width="4%" tal:content="row/credits"></td>
70              <td style='text-align:center' width="10%">CO</td>
[1883]71            </tr>
72          </table>
[1516]73        </span>
[2630]74       
75        <br />
76       
[1516]77        <h4>Session Courses</h4>
78        <br />
79        <table class="contentListing" width="100%" summary="content layout" id="folder_content">     
[2606]80
81
[3980]82        <span tal:repeat="sem python:('1','2')">       
83        <tr><th colspan="3" tal:content="python: test(sem == '1','First Semester Courses', 'Second Semester Courses')" /></tr>           
[2606]84        <tr tal:repeat="row python: test(sem == '1',info['normal1'],info['normal2'])"
85            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[2630]86          <td width="74%" tal:content="row/title"></td>
[4305]87          <td style='text-align:center' width="10%" tal:content="row/code"></td>
88          <td style='text-align:center' width="2%">S<span tal:content="row/semester" /></td>
89          <td style='text-align:center' width="4%" tal:content="row/credits"></td>
90          <td style='text-align:center' width="10%" tal:content="row/coe|nothing"></td>     
[2606]91        </tr>
[3980]92        </span>         
[2606]93       
[3980]94        <th colspan="3" tal:condition="info/normal3">Level Courses</th>               
[2606]95        <tr tal:condition="info/normal3" tal:repeat="row info/normal3"
96            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
[2630]97
98          <td width="74%" tal:content="row/title"></td>
[4305]99          <td style='text-align:center' width="10%" tal:content="row/code"></td>
100          <td style='text-align:center' width="2%">S<span tal:content="row/semester" /></td>
101          <td style='text-align:center' width="4%" tal:content="row/credits"></td>
102          <td style='text-align:center' width="10%" tal:content="row/coe|nothing"></td>
[2606]103         
[2757]104 
[2606]105        </tr>       
106       
[3980]107       
[1516]108          <tr>
[4305]109            <td width="84%" colspan="2" style='text-align:right'>Total Credits:</td>
[2489]110            <td width="2%">&nbsp;</td>
[4305]111            <td style='text-align:center' width="4%" tal:content="info/total_credits"></td>
[2630]112            <td width="10%">&nbsp;</td>
[1516]113          </tr>
114        </table>
115      </form>
[1883]116      <span tal:condition="is_ca">   
117        <br /><br />
118        <table  width=100%>
119          <tr >
120            <td width=50%>Date:</td><td>Date:</td>
121          </tr>
122        </table>
123        <br /><br /><br /><br />
124        <table  width=100%>
125          <tr >
126            <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black"> Student</td>
127            <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black">Course Adviser</td>
128          </tr>
129        </table>
130      </span>             
131    </span>             
132    </span>             
133  </metal:main>
[1575]134</metal:body>
[1516]135 
Note: See TracBrowser for help on using the repository browser.