source: WAeUP_SRP/base/skins/waeup_student/course_registration_slip.pt @ 2613

Last change on this file since 2613 was 2606, checked in by Henrik Bettermann, 17 years ago

resolve #122

File size: 7.1 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          status_info info/status_info;
15          review_state info/review_state;
16          validated python:review_state in ('courses_validated',);
17          view_only info/view_only"
18          >
19      <h3>Course Registration Slip for <span tal:content="here/title_or_id" /></h3>
20      <br />
21      <div tal:condition="validated">
22        - validated by <span tal:condition="info/doc/validated_by|nothing" tal:omit-tag="">
23          <span tal:replace="info/doc/validated_by" /> on <span tal:replace="python:info['doc'].validation_date.aCommon()" />
24        </span> -
25      </div>
26      <div tal:condition="not: validated">
27        - not yet validated by Course Adviser -
28      </div>
29      <br />
30      <span tal:omit-tag=""
31            tal:content="structure python: info['app_doc'].render(proxy=info['app_doc'],
32            layout_mode='view_info',
33            layout_id='student_application')"
34            />           
35      <table  cellpadding="2" cellspacing="0">
36        <tr>
37          <td valign="top" width="180px"><span class="dlabel">Faculty Id</span>:
38          </td>
39          <td>
40            <span tal:content="info/student/faculty" />
41          </td>     
42        </tr>
43        <tr>
44          <td valign="top"><span class="dlabel">Department Id</span>:
45          </td>
46          <td>
47            <span tal:content="info/student/department" />
48          </td>     
49        </tr>
50        <tr>
51          <td valign="top"><span class="dlabel">Study Course Id</span>:
52          </td>
53          <td>
54            <span tal:content="info/student/course" />
55          </td>     
56        </tr>
57      </table>
58      <form action="." method="post" class="group">
59        <span tal:condition="info/carry_overs" tal:omit-tag="">
60          <h4>Carryover Courses</h4>
61          <br />
62          <table class="contentListing" width="100%" summary="content layout" id="folder_content">
63            <tr tal:repeat="row info/carry_overs"
64                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
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>
70            </tr>
71          </table>
72        </span>
73        <h4>Session Courses</h4>
74        <br />
75        <table class="contentListing" width="100%" summary="content layout" id="folder_content">     
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       
137          <tr>
138            <td width="82%" colspan="2" align="right">Total Credits:</td>
139            <td width="2%">&nbsp;</td>
140            <td width="2%" tal:content="info/credits_total"></td>
141            <td width="14%">&nbsp;</td>
142          </tr>
143        </table>
144      </form>
145      <span tal:condition="is_ca">   
146        <br /><br />
147        <table  width=100%>
148          <tr >
149            <td width=50%>Date:</td><td>Date:</td>
150          </tr>
151        </table>
152        <br /><br /><br /><br />
153        <table  width=100%>
154          <tr >
155            <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black"> Student</td>
156            <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black">Course Adviser</td>
157          </tr>
158        </table>
159      </span>             
160    </span>             
161    </span>             
162  </metal:main>
163</metal:body>
164 
Note: See TracBrowser for help on using the repository browser.