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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/user-admin.html

  • Committer: mattgiuca
  • Date: 2008-01-25 06:20:32 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:313
test/test_framework: Updated examples, a bit of better descriptions, sample
    partial solutions, etc.

Added all sample subject material.
This has been copied from test/test_framework and modified slightly.
There is now a subject "sample" with 2 worksheets. The 1st worksheet has 3
exercises. These work in IVLE by default.

setup.py: Added code to install subjects into the designated directory. This
means that installing IVLE will result in the sample subjects being
immediately available.

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>Administer - ${user.nick}</title>
5
 
  </head>
6
 
  <body>
7
 
    <h1>Administer ${user.nick}</h1>
8
 
    <div id="ivle_padding">
9
 
      <form class="verticalform" action="" method="post">
10
 
        <div>
11
 
          <label for="field_login">Login:</label>
12
 
          <span id="field_login">${user.login}</span>
13
 
        </div>
14
 
        <div>
15
 
          <label for="field_unixid">UID:</label>
16
 
          <span id="field_unixid">${user.unixid}</span>
17
 
        </div>
18
 
        <div>
19
 
          <label for="field_disabled">Disabled:</label>
20
 
          <input py:if="user.state in (u'enabled', u'disabled')"
21
 
              py:attrs="{'disabled': 'disabled'} if disable_admin else {}"
22
 
              type="checkbox" name="disabled" id="field_disabled" />
23
 
          <span py:if="user.state not in (u'enabled', u'disabled')">
24
 
            Has not accepted agreement
25
 
          </span>
26
 
        </div>
27
 
        <div>
28
 
          <label for="field_admin">Administrator:</label>
29
 
          <input type="checkbox" name="admin" id="field_admin"
30
 
              py:attrs="{'disabled': 'disabled'} if disable_admin else {}" />
31
 
          <span py:if="'admin' in errors" class="form_error">${errors.admin}</span>
32
 
        </div>
33
 
        <div>
34
 
          <label for="field_fullname">Full name:</label>
35
 
          <input type="text" name="fullname" id="field_fullname" size="40" />
36
 
          <span py:if="'fullname' in errors" class="form_error">${errors.fullname}</span>
37
 
        </div>
38
 
        <div>
39
 
          <label for="field_studentid">Student ID:</label>
40
 
          <input type="text" name="studentid" id="field_studentid" size="40" />
41
 
          <span py:if="'studentid' in errors" class="form_error">${errors.studentid}</span>
42
 
        </div>
43
 
        <p><input type="submit" value="Save Changes" /></p>
44
 
      </form>
45
 
    </div>
46
 
  </body>
47
 
</html>