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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-02-25 05:00:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1731.
  • Revision ID: matt.giuca@gmail.com-20100225050039-s6b1n33hwwucafql
Added new project set edit view. Linked from projects page, project set page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
      <py:if test="projectset.is_group">
20
20
      <p>Groups of maximum size ${projectset.max_students_per_group}.</p>
21
21
      </py:if>
22
 
      <div class="majorsection">
23
 
        <h2>Projects</h2>
24
 
        <table class="pretty_table">
25
 
          <thead><tr><th>Name</th><th>Actions</th></tr></thead>
26
 
          <tbody>
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>
35
 
            </td>
36
 
            </tr>
37
 
          </tbody>
38
 
        </table>
39
 
        <p><a class="addaction" href="${req.publisher.generate(projectset, ProjectNew)}">Add a new project</a></p>
40
 
      </div>
41
 
      <div py:if="projectset.is_group" class="majorsection">
42
 
        <h2>Groups</h2>
43
 
        <table class="pretty_table">
44
 
          <thead><tr><th>Name</th><th>Management</th></tr></thead>
45
 
          <tbody>
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}')"
50
 
                 class="choice"
51
 
                 id="project_group_${group.id}_button">
52
 
                <img src="/+media/ivle.webapp.core/images/interface/group.png" alt="Manage" title="Manage" />
53
 
              </a></td>
54
 
            </tr>
55
 
          </tbody>
56
 
        </table>
57
 
        <p><span class="addaction">
58
 
          <input value="Add a new group" type="button" onclick="create_new_group(${projectset.id})" />
59
 
        </span></p>
60
 
      </div>
 
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></td>
 
28
        </tr>
 
29
      </table>
 
30
      <py:if test="projectset.is_group">
 
31
      <p>Groups in this set:</p>
 
32
      <table class="pretty_table">
 
33
        <tr><th>Name</th><th>Actions</th></tr>
 
34
        <tr py:for="group in projectset.project_groups"
 
35
            id="project_group_${group.id}">
 
36
          <td>${group.name}</td>
 
37
          <td><a onclick="manage_group(${projectset.offering.id}, ${group.id} ,'project_group_${group.id}')"
 
38
             class="choice"
 
39
             id="project_group_${group.id}_button">
 
40
            <img src="/+media/ivle.webapp.core/images/interface/group.png" alt="Manage" title="Manage" />
 
41
          </a></td>
 
42
        </tr>
 
43
      </table>
 
44
      <p><span class="addaction">
 
45
        <input value="Add a new group" type="button" onclick="create_new_group(${projectset.id})" />
 
46
      </span></p>
 
47
      </py:if>
61
48
    </div>
62
49
  </body>
63
50
</html>