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

Last change on this file since 371 was 329, checked in by joachim, 18 years ago

=level_view

File size: 2.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    <h3><span tal:content="context/title_or_id" /></h3> 
20 
21    <tal:block condition="python: len(items)"> 
22      <table>
23        <span tal:repeat="item items">
24          <span tal:define="courses python:item.filterContents(items=item.contentValues())">
25            <tr>
26              <th> <span tal:content="item/id" tal:omit-tag="" /> Semester
27              </th>
28            </tr>
29            <tr>
30              <th>Title
31              </th>
32              <th>
33              </th>
34              <th>Credits</th>
35              <th>Pass</th>
36            </tr>
37            <span tal:repeat="course courses">
38              <tr tal:define="info course/getContentInfo;
39                  wf_status info/review_state;
40                  wf_action python: test(wf_status == 'unchecked', 'approve', 'retract')">
41                <td align="center"><span tal:content="string: ${course/getId} ${course/Title}" tal:omit-tag=""/></td>
42                <td align="center" tal:content="python: test(path('course/core_or_elective'),'Core','elective')"></td>
43                <td align="center" tal:content="course/credits"></td>
44                <td align="center" tal:content="course/passmark"></td>
45                <td align="center" tal:content="wf_status"></td>
46                <td><a href="changestatus"
47                       tal:attributes="href string: ${course/absolute_url}/content_status_modify?workflow_action=${wf_action}"
48                       tal:content="string:[${wf_action}]"></a>
49                </td>
50                <td><a href="changestatus"
51                       tal:attributes="href string: ${course/absolute_url}/cpsdocument_edit_form">[edit]</a>
52                </td>
53                <td><a href="coures" tal:content="string:goto Course"
54                       tal:attributes="href course/coursepath"></a>
55                </td>
56              </tr>
57            </span>
58            <tr> <td></td></tr>
59          </span>
60        </span>
61        </table>
62      </tal:block>
63   
64    <tal:block condition="python: not len(items)">
65        (No Courses yet!)
66    </tal:block>
67 
68  </metal:block>
69  <metal:block fill-slot="sub">
70  </metal:block>
71</html>
Note: See TracBrowser for help on using the repository browser.