source: WAeUP_SRP/trunk/skins/waeup_academics/level_view_form.pt @ 295

Last change on this file since 295 was 282, checked in by joachim, 18 years ago

=renamed uniportal to campus

File size: 1.8 KB
Line 
1<html metal:use-macro="here/content_lib_master/macros/master">
2  <metal:block fill-slot="head_slot">
3  </metal:block>
4
5  <metal:block fill-slot="css_slot">
6    <link rel="Stylesheet" type="text/css" href=""
7      tal:attributes="href string:${base_url}document.css" />
8  </metal:block>
9  <metal:block fill-slot="header">
10  </metal:block>
11
12  <metal:block fill-slot="main"
13               tal:define="roles member/getRoles;
14               backend python:'UniversityManager' in roles or 'StudentManager' in roles;
15               frontend python:'Student' in roles or isAnon;
16               folder here/getContent;
17               items python:context.filterContents(items=context.contentValues());"
18               >
19    <h1>Level  <span tal:content="context/title_or_id" /></h1>     
20 
21    <p>The courses for this level:</p>
22    <tal:block condition="python: len(items)"> 
23      <table>
24        <span tal:repeat="item items">
25          <span tal:define="courses python:item.filterContents(items=item.contentValues())">
26          <tr>
27            <th> <span tal:content="item/id" tal:omit-tag="" /> Semester
28            </th>
29          </tr>
30         <tr tal:repeat="course courses">
31            <td> <a href="coures" tal:content="course/id" tal:attributes="href course/coursepath"></a>
32            </td>
33            <td tal:content="course/Title"></td>
34            <td tal:content="course/core_or_elective"></td>
35            <td tal:content="course/credits"></td>
36            <td tal:content="course/passmark"></td>
37          </tr>
38            <tr> <td></td></tr>
39        </span>
40        </span>
41      </table>
42    </tal:block>
43   
44    <tal:block condition="python: not len(items)">
45        (No Courses yet!)
46    </tal:block>
47 
48  </metal:block>
49  <metal:block fill-slot="sub">
50  </metal:block>
51</html>
Note: See TracBrowser for help on using the repository browser.