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

« back to all changes in this revision

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

  • Committer: Nick Chadwick
  • Date: 2009-02-25 16:39:59 UTC
  • mto: (1099.1.227 exercise-ui)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090225163959-3hsedlesu2pjm12e
Added a few extra files. I'm not sure if they're necessary, and I don't
have time to find out.

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