~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-02-26 02:03:51 UTC
  • Revision ID: grantw@unimelb.edu.au-20090226020351-61b5pi1qgejl2ufr
Remove the user portion of the group view.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    <title>Groups</title>
5
5
  </head>
6
6
  <body>
7
 
    <h1>Project Groups</h1>
 
7
    <h1>Group Administration</h1>
8
8
    <div id="ivle_padding">
9
 
      <p py:if="enrolments.count() == 0">Error: You are not currently enrolled in any subjects.</p>
10
 
      <py:for each="enrolment in enrolments">
11
 
        <div id="subject${enrolment.offering.id}" class="subject">
12
 
          <h2>${enrolment.offering.subject.name}</h2>
13
 
          <py:for each="group in get_user_groups(enrolment.offering)">
14
 
            <h3>${group.nick} (${group.name})</h3>
15
 
            <!-- Need proper test (for invite/membership). -->
16
 
            <!-- <py:choose test="group">
17
 
              <py:when test="True"> -->
18
 
                <p>You are a member of this group.</p>
19
 
              <!--</py:when>
20
 
              <py:otherwise>
21
 
                <p>You have been invited to this group.</p>
22
 
                <p>
23
 
                  <input type="button" 
24
 
                      onclick="accept(&quot;${group.name}&quot;)" 
25
 
                      value="Accept" />
26
 
                  <input type="button"
27
 
                      onclick="decline(&quot;${group.name}&quot;)"
28
 
                      value="Decline" />
29
 
                </p>
30
 
              </py:otherwise>
31
 
            </py:choose>-->
32
 
            <h4>Members</h4>
33
 
            <ul>
34
 
              <py:for each="member in group.members">
35
 
                <li>${member.fullname} (${member.login})</li>
36
 
              </py:for>
37
 
            </ul>
38
 
          </py:for>
39
 
        </div>
40
 
      </py:for>
41
9
      <py:if test="manage_subjects">
42
 
        <hr />
43
 
        <h2>Group Administration</h2>
44
10
        <label for="subject_select">Subject:</label>
45
11
        <select id="subject_select">
46
12
          <py:for each="subject in manage_subjects">