source: WAeUP_SRP/trunk/skins/waeup_faculty/level_view_form.pt @ 276

Last change on this file since 276 was 256, checked in by joachim, 18 years ago

=import from csv

File size: 1.6 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 tal:content="course/id">
32            </td>
33            <td tal:content="course/Title">
34            </td>
35          </tr>
36            <tr> <td></td></tr>
37        </span>
38        </span>
39      </table>
40    </tal:block>
41   
42    <tal:block condition="python: not len(items)">
43        (No Courses yet!)
44    </tal:block>
45 
46  </metal:block>
47  <metal:block fill-slot="sub">
48  </metal:block>
49</html>
Note: See TracBrowser for help on using the repository browser.