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

« back to all changes in this revision

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

Cache worksheet and exercise rST-generated XHTML in the DB, accelerating rendering by up to 2000%.

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
      <py:if test="not projectset.is_group">
 
10
      <p>Non-group projects.</p>
 
11
      </py:if>
 
12
      <py:if test="projectset.is_group">
 
13
      <p>Groups of maximum size ${projectset.max_students_per_group}.</p>
 
14
      </py:if>
 
15
      <p>Projects in this set:</p>
 
16
      <table class="pretty_table">
 
17
        <tr><th>Name</th><th>Actions</th></tr>
 
18
        <tr py:for="project in projectset.projects">
 
19
          <td><a href="${req.publisher.generate(project)}">${project.name}</a></td>
 
20
          <td></td>
 
21
        </tr>
 
22
      </table>
 
23
      <py:if test="projectset.is_group">
 
24
      <p>Groups in this set:</p>
 
25
      <table class="pretty_table">
 
26
        <tr><th>Name</th><th>Actions</th></tr>
 
27
        <tr py:for="group in projectset.project_groups"
 
28
            id="project_group_${group.id}">
 
29
          <td>${group.name}</td>
 
30
          <td><a onclick="manage_group(${projectset.offering.id}, ${group.id} ,'project_group_${group.id}')"
 
31
             class="choice"
 
32
             id="project_group_${group.id}_button">
 
33
            <img src="/+media/ivle.webapp.core/images/interface/group.png" alt="Manage" title="Manage" />
 
34
          </a></td>
 
35
        </tr>
 
36
      </table>
 
37
      <p><span class="addaction">
 
38
        <input value="Add a new group" type="button" onclick="create_new_group(${projectset.id})" />
 
39
      </span></p>
 
40
      </py:if>
 
41
    </div>
 
42
  </body>
 
43
</html>