1
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
2
xmlns:py="http://genshi.edgewall.org/">
4
<title>Groups - ${offering.subject.name}</title>
7
<h1>Project Groups</h1>
7
<h1>Groups for ${offering.subject.name}</h1>
8
8
<div id="ivle_padding">
9
<p py:if="enrolments.count() == 0">Error: You are not currently enrolled in any subjects.</p>
10
<py:for each="enrolment in enrolments">
11
<div id="subject${enrolment.offering.id}" class="subject">
12
<h2>${enrolment.offering.subject.name}</h2>
13
<py:for each="group in get_user_groups(enrolment.offering)">
14
<h3>${group.nick} (${group.name})</h3>
15
<!-- Need proper test (for invite/membership). -->
16
<!-- <py:choose test="group">
17
<py:when test="True"> -->
18
<p>You are a member of this group.</p>
21
<p>You have been invited to this group.</p>
24
onclick="accept("${group.name}")"
27
onclick="decline("${group.name}")"
34
<py:for each="member in group.members">
35
<li>${member.fullname} (${member.login})</li>
41
<py:if test="manage_subjects">
43
<h2>Group Administration</h2>
44
<label for="subject_select">Subject:</label>
45
<select id="subject_select">
46
<py:for each="subject in manage_subjects">
47
<option value="${subject.id}">${subject.name} (${subject.code})</option>
50
<input type="button" value="Manage" onclick="manage_subject()" />
51
<div id="subject_div"></div>
9
<div id="offering_groups" >
11
<py:for each="project_set in offering.project_sets">
12
<dt>Project Set ${project_set.id}</dt>
15
<li py:for="group in project_set.project_groups"
16
id="project_group_${group.id}">
18
<a onclick="manage_group(${offering.id}, ${group.id} ,'project_group_${group.id}')"
20
id="project_group_${group.id}_button">
24
<li><input value="New" type="button" onclick="create_new_group(${project_set.id})" /></li>