1
<html xmlns="http://www.w3.org/1999/xhtml"
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>
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
<p>Projects in this set:</p>
23
<table class="pretty_table">
24
<tr><th>Name</th><th>Actions</th></tr>
25
<tr py:for="project in projectset.projects">
26
<td><a href="${req.publisher.generate(project)}">${project.name}</a></td>
27
<td><a href='${req.publisher.generate(project, ProjectEdit)}'><img
28
src='/+media/ivle.webapp.core/images/interface/pencil.png'
29
alt="Edit" title="Edit project" /></a>
30
<a href='${req.publisher.generate(project, ProjectDelete)}'><img
31
src='/+media/ivle.webapp.core/images/interface/delete.png'
32
alt="Delete" title="Delete project" /></a>
36
<p><a class="addaction" href="${req.publisher.generate(projectset, ProjectNew)}">Add a new project</a></p>
37
<py:if test="projectset.is_group">
38
<p>Groups in this set:</p>
39
<table class="pretty_table">
40
<tr><th>Name</th><th>Actions</th></tr>
41
<tr py:for="group in projectset.project_groups"
42
id="project_group_${group.id}">
43
<td>${group.name}</td>
44
<td><a onclick="manage_group(${projectset.offering.id}, ${group.id} ,'project_group_${group.id}')"
46
id="project_group_${group.id}_button">
47
<img src="/+media/ivle.webapp.core/images/interface/group.png" alt="Manage" title="Manage" />
51
<p><span class="addaction">
52
<input value="Add a new group" type="button" onclick="create_new_group(${projectset.id})" />