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

Last change on this file since 1884 was 1883, checked in by joachim, 17 years ago

avoid error on anonymous view (in custom)

File size: 4.3 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</h3>
20      <br />
21      <div tal:condition="validated">
22        - validated by Course Adviser -
23        <span tal:condition="info/doc/validated_by|nothing" tal:omit-tag="">
24          <span tal:replace="info/doc/validated_by" /> on <span tal:replace="info/doc/validation_date" />
25        </span>
26      </div>
27      <div tal:condition="not: validated">
28        - not yet validated by Course Adviser -
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_fe')"
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 tal:condition="python: 1" 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="78%" tal:content="row/title"></td>
67              <td width="10%" tal:content="row/code"></td>
68              <td width="2%">S<span tal:content="row/semester" /></td>
69              <td width="2%" tal:content="row/credits"></td>
70              <td width="8%" tal:content="row/grade|string:"></td>
71            </tr>
72          </table>
73        </span>
74        <h4>Session Courses</h4>
75        <br />
76        <table class="contentListing" width="100%" summary="content layout" id="folder_content">     
77          <tr tal:repeat="row info/normal"
78              tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
79            <td width="78%" tal:content="row/title"></td>
80            <td width="10%" tal:content="row/code"></td>
81            <td width="2%">S<span tal:content="row/semester" /></td>
82            <td width="2%" tal:content="row/credits"></td>
83            <td width="8%" tal:content="row/coe|nothing"></td>
84          </tr>
85          <tr>
86            <th colspan="2" align="right">Total Credits:</th>
87            <td></td>
88            <td width="2%" tal:content="info/credits_total"></td>
89          </tr>
90        </table>
91      </form>
92      <span tal:condition="is_ca">   
93        <br /><br />
94        <table  width=100%>
95          <tr >
96            <td width=50%>Date:</td><td>Date:</td>
97          </tr>
98        </table>
99        <br /><br /><br /><br />
100        <table  width=100%>
101          <tr >
102            <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black"> Student</td>
103            <td width=50% style="border-top-style:solid; border-top-width:1px; border-top-color:black">Course Adviser</td>
104          </tr>
105        </table>
106      </span>             
107    </span>             
108    </span>             
109  </metal:main>
110</metal:body>
111 
Note: See TracBrowser for help on using the repository browser.