1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/">
<head>
<title>Enrolments - ${offering.subject.name}</title>
</head>
<body>
<h1>Staff and students in ${offering.subject.name}</h1>
<div id="ivle_padding">
<div py:def="userlist(title, role)"
py:if="offering.get_members_by_role(unicode(role)).count()">
<h2>${title}</h2>
<table class="pretty_table">
<thead><tr><th>Login</th><th>Name</th></tr></thead>
<tbody>
<tr py:for="user in offering.get_members_by_role(unicode(role))">
<td>${user.login}</td>
<td>${user.display_name}</td>
</tr>
</tbody>
</table>
</div>
${userlist("Lecturers", "lecturer")}
${userlist("Tutors", "tutor")}
${userlist("Students", "student")}
</div>
</body>
</html>
|