~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-23 23:47:02 UTC
  • mfrom: (1099.1.211 new-dispatch)
  • Revision ID: grantw@unimelb.edu.au-20090223234702-db4b1llly46ignwo
Merge from lp:~ivle-dev/ivle/new-dispatch.

Pretty much everything changes. Reread the setup docs. Backup your databases.
Every file is now in a different installed location, the configuration system
is rewritten, the dispatch system is rewritten, URLs are different, the
database is different, worksheets and exercises are no longer on the
filesystem, we use a templating engine, jail service protocols are rewritten,
we don't repeat ourselves, we have authorization rewritten, phpBB is gone,
and probably lots of other things that I cannot remember.

This is certainly the biggest commit I have ever made, and hopefully
the largest I ever will.

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</title>
 
5
  </head>
 
6
  <body>
6
7
    <div id="ivle_padding">
7
 
      <p py:if="no_enrolments">Error: You are not currently enrolled in any subjects.</p>
 
8
      <p py:if="not enrolments">Error: You are not currently enrolled in any subjects.</p>
8
9
      <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">
 
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"> -->
15
17
                <p>You are a member of this group.</p>
16
 
              </py:when>
 
18
              <!--</py:when>
17
19
              <py:otherwise>
18
20
                <p>You have been invited to this group.</p>
19
21
                <p>
20
22
                  <input type="button" 
21
 
                      onclick="accept(&quot;${group['name']}&quot;)" 
 
23
                      onclick="accept(&quot;${group.name}&quot;)" 
22
24
                      value="Accept" />
23
25
                  <input type="button"
24
 
                      onclick="decline(&quot;${group['name']}&quot;)"
 
26
                      onclick="decline(&quot;${group.name}&quot;)"
25
27
                      value="Decline" />
26
28
                </p>
27
29
              </py:otherwise>
28
 
            </py:choose>
 
30
            </py:choose>-->
29
31
            <h3>Members</h3>
30
32
            <ul>
31
 
              <py:for each="member in group['members']">
32
 
                <li>${member['fullname']} (${member['login']})</li>
 
33
              <py:for each="member in group.members">
 
34
                <li>${member.fullname} (${member.login})</li>
33
35
              </py:for>
34
36
            </ul>
35
37
          </py:for>
36
38
        </div>
37
39
      </py:for>
38
 
      <py:if test="manage_groups">
 
40
      <py:if test="manage_subjects">
39
41
        <hr />
40
42
        <h1>Group Administration</h1>
41
43
        <label for="subject_select">Subject:</label>
42
44
        <select id="subject_select">
43
45
          <py:for each="subject in manage_subjects">
44
 
            <option value="${subject['id']}">${subject['name']} (${subject['code']})</option>
 
46
            <option value="${subject.id}">${subject.name} (${subject.code})</option>
45
47
          </py:for>
46
48
        </select>
47
49
        <input type="button" value="Manage" onclick="manage_subject()" />