~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/groups/template.html

  • Committer: drtomc
  • Date: 2007-12-11 03:26:29 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:25
A bit more work on the userdb stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html xmlns="http://www.w3.org/1999/xhtml"
2
 
      xmlns:py="http://genshi.edgewall.org/">
3
 
  <head>
4
 
    <title>Project set for ${projectset.offering.subject.name}</title>
5
 
  </head>
6
 
  <body>
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"
11
 
           class="editaction"
12
 
           href="${req.publisher.generate(projectset, ProjectSetEdit)}">
13
 
           Change details
14
 
        </a>
15
 
      </div>
16
 
      <py:if test="not projectset.is_group">
17
 
      <p>Non-group projects.</p>
18
 
      </py:if>
19
 
      <py:if test="projectset.is_group">
20
 
      <p>Groups of maximum size ${projectset.max_students_per_group}.</p>
21
 
      </py:if>
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' alt="Edit"
29
 
            title="Edit project" /></a></td>
30
 
        </tr>
31
 
      </table>
32
 
      <p><a class="addaction" href="${req.publisher.generate(projectset, ProjectNew)}">Add a new project</a></p>
33
 
      <py:if test="projectset.is_group">
34
 
      <p>Groups in this set:</p>
35
 
      <table class="pretty_table">
36
 
        <tr><th>Name</th><th>Actions</th></tr>
37
 
        <tr py:for="group in projectset.project_groups"
38
 
            id="project_group_${group.id}">
39
 
          <td>${group.name}</td>
40
 
          <td><a onclick="manage_group(${projectset.offering.id}, ${group.id} ,'project_group_${group.id}')"
41
 
             class="choice"
42
 
             id="project_group_${group.id}_button">
43
 
            <img src="/+media/ivle.webapp.core/images/interface/group.png" alt="Manage" title="Manage" />
44
 
          </a></td>
45
 
        </tr>
46
 
      </table>
47
 
      <p><span class="addaction">
48
 
        <input value="Add a new group" type="button" onclick="create_new_group(${projectset.id})" />
49
 
      </span></p>
50
 
      </py:if>
51
 
    </div>
52
 
  </body>
53
 
</html>