1
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
2
xmlns:py="http://genshi.edgewall.org/">
4
<title>Project set for ${projectset.offering.subject.name}</title>
7
<h1>Project set for ${projectset.offering.subject.name}</h1>
7
<h1>Project Groups</h1>
8
8
<div id="ivle_padding">
9
<div class="contextactions">
10
<a py:if="'edit' in permissions"
12
href="${req.publisher.generate(projectset, ProjectSetEdit)}">
16
<py:if test="not projectset.is_group">
17
<p>Non-group projects.</p>
19
<py:if test="projectset.is_group">
20
<p>Groups of maximum size ${projectset.max_students_per_group}.</p>
22
<div class="majorsection">
24
<table class="pretty_table">
25
<thead><tr><th>Name</th><th>Actions</th></tr></thead>
27
<tr py:for="project in projectset.projects">
28
<td><a href="${req.publisher.generate(project)}">${project.name}</a></td>
29
<td><a href='${req.publisher.generate(project, ProjectEdit)}'><img
30
src='/+media/ivle.webapp.core/images/interface/pencil.png'
31
alt="Edit" title="Edit project" /></a>
32
<a href='${req.publisher.generate(project, ProjectDelete)}'><img
33
src='/+media/ivle.webapp.core/images/interface/delete.png'
34
alt="Delete" title="Delete project" /></a>
39
<p><a class="addaction" href="${req.publisher.generate(projectset, ProjectNew)}">Add a new project</a></p>
41
<div py:if="projectset.is_group" class="majorsection">
43
<table class="pretty_table">
44
<thead><tr><th>Name</th><th>Management</th></tr></thead>
46
<tr py:for="group in projectset.project_groups"
47
id="project_group_${group.id}">
48
<td>${group.name}</td>
49
<td><a onclick="manage_group(${projectset.offering.id}, ${group.id} ,'project_group_${group.id}')"
51
id="project_group_${group.id}_button">
52
<img src="/+media/ivle.webapp.core/images/interface/group.png" alt="Manage" title="Manage" />
57
<p><span class="addaction">
58
<input value="Add a new group" type="button" onclick="create_new_group(${projectset.id})" />
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>