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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-12-07 11:01:50 UTC
  • mfrom: (1341.1.3 trunk)
  • Revision ID: grantw@unimelb.edu.au-20091207110150-jct30a9yru432ddn
Fix up the project set creation UI a bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
 
      xmlns:xi="http://www.w3.org/2001/XInclude"
3
 
      xmlns:py="http://genshi.edgewall.org/" py:strip="">
4
 
 
5
 
  <body py:strip="">
 
2
      xmlns:py="http://genshi.edgewall.org/">
 
3
  <head>
 
4
    <title>Groups - ${offering.subject.name}</title>
 
5
  </head>
 
6
  <body>
 
7
    <h1>Groups for ${offering.subject.name}</h1>
6
8
    <div id="ivle_padding">
7
 
      <p py:if="no_enrolments">Error: You are not currently enrolled in any subjects.</p>
8
 
      <py:for each="enrolment in enrolments">
9
 
        <div id="subject${enrolment.offering_id}" class="subject">
10
 
          <h1>${enrolment.offering_name}</h1>
11
 
          <py:for each="group in enrolment['groups']">
12
 
            <h2>${group['nick']} (${group['name']})</h2>
13
 
            <py:choose test="group['is_member']">
14
 
              <py:when test="True">
15
 
                <p>You are a member of this group.</p>
16
 
              </py:when>
17
 
              <py:otherwise>
18
 
                <p>You have been invited to this group.</p>
19
 
                <p>
20
 
                  <input type="button" 
21
 
                      onclick="accept(&quot;${group['name']}&quot;)" 
22
 
                      value="Accept" />
23
 
                  <input type="button"
24
 
                      onclick="decline(&quot;${group['name']}&quot;)"
25
 
                      value="Decline" />
26
 
                </p>
27
 
              </py:otherwise>
28
 
            </py:choose>
29
 
            <h3>Members</h3>
30
 
            <ul>
31
 
              <py:for each="member in group['members']">
32
 
                <li>${member['fullname']} (${member['login']})</li>
33
 
              </py:for>
34
 
            </ul>
35
 
          </py:for>
36
 
        </div>
37
 
      </py:for>
38
 
      <py:if test="manage_groups">
39
 
        <hr />
40
 
        <h1>Group Administration</h1>
41
 
        <label for="subject_select">Subject:</label>
42
 
        <select id="subject_select">
43
 
          <py:for each="subject in manage_subjects">
44
 
            <option value="${subject['id']}">${subject['name']} (${subject['code']})</option>
45
 
          </py:for>
46
 
        </select>
47
 
        <input type="button" value="Manage" onclick="manage_subject()" />
48
 
        <div id="subject_div"></div>
49
 
      </py:if>
 
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>
50
30
    </div>
51
31
  </body>
52
32
</html>