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

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

Move form label to site layout pagetemplates. This saves even more code.

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