1
<html xmlns="http://www.w3.org/1999/xhtml"
2
xmlns:py="http://genshi.edgewall.org/">
4
<title>Enrolments - ${offering.subject.name}</title>
7
<h1>Staff and students in ${offering.subject.name}</h1>
8
<div id="ivle_padding">
9
<div class="majorsection" py:def="userlist(title, role)"
10
py:if="offering.get_members_by_role(unicode(role)).count()">
12
<table class="pretty_table">
13
<thead><tr><th>Login</th><th>Name</th><th>Actions</th></tr></thead>
15
<tr py:for="user in offering.get_members_by_role(unicode(role))">
16
<td>${user.login}</td>
17
<td>${user.display_name}</td>
19
<a href="${req.publisher.generate(offering.get_enrolment(user), EnrolmentEdit)}" title="Edit"><img src="${mediapath + 'interface/pencil.png'}" alt="Edit" /></a>
20
<a href="${req.publisher.generate(offering.get_enrolment(user), EnrolmentDelete)}" title="Remove"><img src="${mediapath + 'interface/delete.png'}" alt="Remove" /></a>
26
${userlist("Lecturers", "lecturer")}
27
${userlist("Tutors", "tutor")}
28
${userlist("Students", "student")}
29
<a class="groupaction" href="${req.publisher.generate(offering, EnrolView)}">Enrol user</a>