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

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

Adjust layout.

File size: 5.6 KB
Line 
1  <metal:body use-macro="here/slip_template/macros/master">
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;
14          validated info/validated;
15          cv_id info/doc/validated_by|nothing;
16          cv_member python:context.waeup_tool.getOfficerName(cv_id);         
17          ">
18      <h3>Course Registration Slip for <span tal:content="info/level_str" /></h3>
19      <br />
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()" /> -
23      </div>
24      <div tal:condition="not: validated">
25        - not yet validated by Course Adviser -
26      </div>
27      <div tal:condition="python: validated and not cv_id">
28        - validated by system -
29      </div>     
30      <br />
31      <span tal:omit-tag=""
32            tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
33            layout_mode='view_info',
34            layout_id='student_application')"
35            />           
36      <table  cellpadding="2" cellspacing="0">
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>
58      </table>
59      <form action="." method="post" class="group">
60        <span tal:condition="info/carry_overs" tal:omit-tag="">
61          <h4>Carryover Courses</h4>
62          <br />
63          <table class="contentListing" width="100%" summary="content layout" id="folder_content">
64            <tr tal:repeat="row info/carry_overs"
65                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
66              <td width="74%" tal:content="row/title"></td>
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>
71            </tr>
72          </table>
73        </span>
74       
75        <br />
76       
77        <h4>Session Courses</h4>
78        <br />
79        <table class="contentListing" width="100%" summary="content layout" id="folder_content">     
80
81
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>           
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')">
86          <td width="74%" tal:content="row/title"></td>
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>     
91        </tr>
92        </span>         
93       
94        <th colspan="3" tal:condition="info/normal3">Level Courses</th>               
95        <tr tal:condition="info/normal3" tal:repeat="row info/normal3"
96            tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
97
98          <td width="74%" tal:content="row/title"></td>
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>
103         
104 
105        </tr>       
106       
107       
108          <tr>
109            <td width="84%" colspan="2" style='text-align:right'>Total Credits:</td>
110            <td width="2%">&nbsp;</td>
111            <td style='text-align:center' width="4%" tal:content="info/total_credits"></td>
112            <td width="10%">&nbsp;</td>
113          </tr>
114        </table>
115      </form>
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>
134</metal:body>
135 
Note: See TracBrowser for help on using the repository browser.