source: main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studycoursepage.pt @ 7336

Last change on this file since 7336 was 7206, checked in by Henrik Bettermann, 13 years ago

tal:condition="view/department" does not work in pagetemplates because the boolean value of view/department is always False, even if it exists, since there are no items in the department container. Also the boolean value of view/certificate might be False if there are no certificatecourses in the certificate container. bool is associated with the len of the container which is the number of subobjects by default.

File size: 1.9 KB
Line 
1<h2 tal:content="view/label">TITLE</h2>
2
3<table class="zebra">
4<thead>
5</thead>
6<tbody>
7  <tal:block repeat="widget view/widgets">
8    <tr>
9      <td>
10        <label tal:attributes="for widget/name">
11          <span i18n:translate=""
12                         tal:content="widget/label">label</span>:
13        </label>
14      </td>
15      <td class="field" tal:on-error="default">
16        <div class="widget" tal:content="structure widget">
17          <input type="text" />
18        </div>
19      </td>
20    </tr>
21  </tal:block>
22    <tr>
23      <td>
24        <label>
25          Study Mode:
26        </label>
27      </td>
28      <td class="field">
29        <div class="widget" tal:content="view/current_mode">
30          <input type="text" />
31        </div>
32      </td>
33    </tr>
34    <tr tal:condition="python: view.department is not None">
35      <td>
36        <label>
37          Department:
38        </label>
39      </td>
40      <td class="field">
41        <a tal:attributes="href python: view.url(view.department)" class="widget"
42             tal:content="view/department/longtitle">
43          DEPARTMENT
44        </a>
45      </td>
46    </tr>
47    <tr tal:condition="python: view.faculty is not None">
48      <td>
49        <label>
50          Faculty:
51        </label>
52      </td>
53      <td class="field">
54        <a tal:attributes="href python: view.url(view.faculty)" class="widget"
55             tal:content="view/faculty/longtitle">
56          FACULTY
57        </a>
58      </td>
59    </tr>
60</tbody>
61</table>
62
63<h3>Study Levels (Course Lists)</h3>
64
65
66<table class="zebra">
67  <thead>
68    <tr>
69      <th>Level Code</th>
70      <th>Level Title</th>
71    </tr>
72  </thead>
73  <tbody>
74    <tr tal:repeat="value context/values">
75      <td> <a tal:attributes="href value/__name__">
76      <span tal:content="value/level">CODE</span></a></td>
77      <td tal:content="value/level_title">TITLE</td>
78    </tr>
79  </tbody>
80</table>
81
82
83<div tal:condition="python: not len(context.keys())">
84There are no levels registered yet.
85</div>
Note: See TracBrowser for help on using the repository browser.