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

« back to all changes in this revision

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

  • Committer: dcoles
  • Date: 2008-07-18 02:40:58 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:912
Makeuser: Makeuser will now chown all files in a users home directory to the
unixid provided by the database. This means remakeallusers.py can be used to
update everyones unixids after a database change. The makeuser script will also 
no longer generate a random unixid when one is not given on the command line.

Database: Change to database so that a sequence is used by default. The allowed  
range is 1000-29999 (let's start at 5000, because 1000+ is used by adduser.  
Reference: http://www.debian.org/doc/debian-policy/ch-opersys.html)
See SF Bug '[ 2012190 ] Student UID generation'
Migration script will reallocate all users a new unixid from the sequence.

Usermgt-Server: Now no longer generates a random unixid. Rely on the database 
to come up with a new sequence number.

Show diffs side-by-side

added added

removed removed

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