1
<html xmlns="http://www.w3.org/1999/xhtml"
2
xmlns:xi="http://www.w3.org/2001/XInclude"
3
xmlns:py="http://genshi.edgewall.org/" py:strip="">
6
<div id="ivle_padding">
7
<p py:if="no_enrolments">Error: You are not currently enrolled in any subjects.</p>
8
<py:for each="enrolment in enrolments">
9
<div id="subject${enrolment.offering_id}" class="subject">
10
<h1>${enrolment.offering_name}</h1>
11
<py:for each="group in enrolment['groups']">
12
<h2>${group['nick']} (${group['name']})</h2>
13
<py:choose test="group['is_member']">
15
<p>You are a member of this group.</p>
18
<p>You have been invited to this group.</p>
21
onclick="accept("${group['name']}")"
24
onclick="decline("${group['name']}")"
31
<py:for each="member in group['members']">
32
<li>${member['fullname']} (${member['login']})</li>
38
<py:if test="manage_groups">
40
<h1>Group Administration</h1>
41
<label for="subject_select">Subject:</label>
42
<select id="subject_select">
43
<py:for each="subject in manage_subjects">
44
<option value="${subject['id']}">${subject['name']} (${subject['code']})</option>
47
<input type="button" value="Manage" onclick="manage_subject()" />
48
<div id="subject_div"></div>