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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/">
<head>
<title>Project set for ${projectset.offering.subject.name}</title>
</head>
<body>
<h1>Project set for ${projectset.offering.subject.name}</h1>
<div id="ivle_padding">
<div class="contextactions">
<a py:if="'edit' in permissions"
class="editaction"
href="${req.publisher.generate(projectset, ProjectSetEdit)}">
Change details
</a>
</div>
<py:if test="not projectset.is_group">
<p>Non-group projects.</p>
</py:if>
<py:if test="projectset.is_group">
<p>Groups of maximum size ${projectset.max_students_per_group}.</p>
</py:if>
<div class="majorsection">
<h2>Projects</h2>
<table class="pretty_table">
<thead><tr><th>Name</th><th>Actions</th></tr></thead>
<tbody>
<tr py:for="project in projectset.projects">
<td><a href="${req.publisher.generate(project)}">${project.name}</a></td>
<td><a href='${req.publisher.generate(project, ProjectEdit)}'><img
src='/+media/ivle.webapp.core/images/interface/pencil.png'
alt="Edit" title="Edit project" /></a>
<a href='${req.publisher.generate(project, ProjectDelete)}'><img
src='/+media/ivle.webapp.core/images/interface/delete.png'
alt="Delete" title="Delete project" /></a>
</td>
</tr>
</tbody>
</table>
<p><a class="addaction" href="${req.publisher.generate(projectset, ProjectNew)}">Add a new project</a></p>
</div>
<div py:if="projectset.is_group" class="majorsection">
<h2>Groups</h2>
<table class="pretty_table">
<thead><tr><th>Name</th><th>Management</th></tr></thead>
<tbody>
<tr py:for="group in projectset.project_groups"
id="project_group_${group.id}">
<td>${group.name}</td>
<td><a onclick="manage_group(${projectset.offering.id}, ${group.id} ,'project_group_${group.id}')"
class="choice"
id="project_group_${group.id}_button">
<img src="/+media/ivle.webapp.core/images/interface/group.png" alt="Manage" title="Manage" />
</a></td>
</tr>
</tbody>
</table>
<p><span class="addaction">
<input value="Add a new group" type="button" onclick="create_new_group(${projectset.id})" />
</span></p>
</div>
</div>
</body>
</html>
|