~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: 2009-04-25 14:37:42 UTC
  • mfrom: (1195.1.19 marks-fix)
  • Revision ID: matt.giuca@gmail.com-20090425143742-741mh2plk0cgib3e
Merged branch marks-fix. Fixes Google Code issue 144.

bin/ivle-marks: Completely rewritten. (Was hopelessly out-of-date, and didn't
    work at all. Now works on the current database model, and has new features
    to boot - able to select the semester and cutoff date).

ivle.worksheet.utils: Added calculate_mark, which is from the duplicated code
    in both bin/ivle-marks and ivle.webapp.tutorial.OfferingView.populate.
    Also added some extra optional arguments for calculating
    exercise/worksheet scores from a particular date.

ivle.webapp.tutorial: Call ivle.worksheet.utils.calculate_mark instead of
    manually calculating (avoid code duplication).

ivle.database: A few new methods on the Subject class, for retrieving
    offerings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
2
      xmlns:py="http://genshi.edgewall.org/">
3
3
  <head>
4
 
    <title>Groups for ${projectset.offering.subject.name}</title>
 
4
    <title>Groups - ${offering.subject.name}</title>
5
5
  </head>
6
6
  <body>
7
 
    <h1>Groups for ${projectset.offering.subject.name}</h1>
 
7
    <h1>Groups for ${offering.subject.name}</h1>
8
8
    <div id="ivle_padding">
9
 
      <ul>
10
 
        <li py:for="group in projectset.project_groups"
11
 
            id="project_group_${group.id}">
12
 
          ${group.name}
13
 
          <a onclick="manage_group(${projectset.offering.id}, ${group.id} ,'project_group_${group.id}')"
14
 
             class="choice"
15
 
             id="project_group_${group.id}_button">
16
 
            (manage)
17
 
          </a>
18
 
        </li>
19
 
        <li><input value="New" type="button" onclick="create_new_group(${projectset.id})" /></li>
20
 
      </ul>
 
9
      <div id="offering_groups" >
 
10
        <dl>
 
11
          <py:for each="project_set in offering.project_sets">
 
12
            <dt>Project Set ${project_set.id}</dt>
 
13
            <dd>
 
14
              <ul>
 
15
                <li py:for="group in project_set.project_groups"
 
16
                    id="project_group_${group.id}">
 
17
                  ${group.name}
 
18
                  <a onclick="manage_group(${offering.id}, ${group.id} ,'project_group_${group.id}')"
 
19
                     class="choice"
 
20
                     id="project_group_${group.id}_button">
 
21
                    (manage)
 
22
                  </a>
 
23
                </li>
 
24
                <li><input value="New" type="button" onclick="create_new_group(${project_set.id})" /></li>
 
25
              </ul>
 
26
            </dd>
 
27
          </py:for>
 
28
        </dl>
 
29
      </div>
21
30
    </div>
22
31
  </body>
23
32
</html>