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

1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
1
<html xmlns="http://www.w3.org/1999/xhtml"
1099.1.25 by root
ivle.webapp.admin, ivle.webapp.groups, ivle.webapp.tutorial: Remove broken
2
      xmlns:py="http://genshi.edgewall.org/">
1099.1.17 by Nick Chadwick
Moved groups over to the new class-based xhtml templating way of being
3
  <head>
1099.1.56 by William Grant
ivle.webapp.groups: Remove most of the view code; the template now accesses
4
    <title>Groups</title>
1099.1.17 by Nick Chadwick
Moved groups over to the new class-based xhtml templating way of being
5
  </head>
6
  <body>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
7
    <div id="ivle_padding">
1099.1.56 by William Grant
ivle.webapp.groups: Remove most of the view code; the template now accesses
8
      <p py:if="not enrolments">Error: You are not currently enrolled in any subjects.</p>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
9
      <py:for each="enrolment in enrolments">
1099.1.56 by William Grant
ivle.webapp.groups: Remove most of the view code; the template now accesses
10
        <div id="subject${enrolment.offering.id}" class="subject">
11
          <h1>${enrolment.offering.subject.name}</h1>
12
          <py:for each="group in get_user_groups(enrolment.offering)">
13
            <h2>${group.nick} (${group.name})</h2>
14
            <!-- Need proper test (for invite/membership). -->
15
            <!-- <py:choose test="group">
16
              <py:when test="True"> -->
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
17
                <p>You are a member of this group.</p>
1099.1.56 by William Grant
ivle.webapp.groups: Remove most of the view code; the template now accesses
18
              <!--</py:when>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
19
              <py:otherwise>
20
                <p>You have been invited to this group.</p>
21
                <p>
22
                  <input type="button" 
1099.1.56 by William Grant
ivle.webapp.groups: Remove most of the view code; the template now accesses
23
                      onclick="accept(&quot;${group.name}&quot;)" 
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
24
                      value="Accept" />
25
                  <input type="button"
1099.1.56 by William Grant
ivle.webapp.groups: Remove most of the view code; the template now accesses
26
                      onclick="decline(&quot;${group.name}&quot;)"
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
27
                      value="Decline" />
28
                </p>
29
              </py:otherwise>
1099.1.56 by William Grant
ivle.webapp.groups: Remove most of the view code; the template now accesses
30
            </py:choose>-->
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
31
            <h3>Members</h3>
32
            <ul>
1099.1.56 by William Grant
ivle.webapp.groups: Remove most of the view code; the template now accesses
33
              <py:for each="member in group.members">
34
                <li>${member.fullname} (${member.login})</li>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
35
              </py:for>
36
            </ul>
37
          </py:for>
38
        </div>
39
      </py:for>
1099.1.56 by William Grant
ivle.webapp.groups: Remove most of the view code; the template now accesses
40
      <py:if test="manage_subjects">
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
41
        <hr />
42
        <h1>Group Administration</h1>
43
        <label for="subject_select">Subject:</label>
44
        <select id="subject_select">
45
          <py:for each="subject in manage_subjects">
1099.1.56 by William Grant
ivle.webapp.groups: Remove most of the view code; the template now accesses
46
            <option value="${subject.id}">${subject.name} (${subject.code})</option>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
47
          </py:for>
48
        </select>
49
        <input type="button" value="Manage" onclick="manage_subject()" />
50
        <div id="subject_div"></div>
51
      </py:if>
52
    </div>
53
  </body>
54
</html>