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

1294.1.9 by William Grant
Add a UserAdminView, to set fullname/studentid/admin.
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">
1294.1.10 by William Grant
Switch to CSS form layout for the user edit views.
9
      <form class="verticalform" action="" method="post">
1294.1.9 by William Grant
Add a UserAdminView, to set fullname/studentid/admin.
10
        <table>
1294.1.10 by William Grant
Switch to CSS form layout for the user edit views.
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
20
          <div>
21
            <label for="field_admin">Administrator:</label>
1501 by Matt Giuca
User administration page: Do not let an admin user change their own admin checkbox (disable and don't let it change). This would be bad.
22
            <input type="checkbox" name="admin" id="field_admin"
23
                py:attrs="{'disabled': 'disabled'} if disable_admin else {}" />
1294.1.10 by William Grant
Switch to CSS form layout for the user edit views.
24
            <span py:if="'admin' in errors" class="form_error">${errors.admin}</span>
25
          </div>
26
          <div>
27
            <label for="field_fullname">Full name:</label>
28
            <input type="text" name="fullname" id="field_fullname" size="40" />
29
            <span py:if="'fullname' in errors" class="form_error">${errors.fullname}</span>
30
          </div>
31
          <div>
32
            <label for="field_studentid">Student ID:</label>
33
            <input type="text" name="studentid" id="field_studentid" size="40" />
34
            <span py:if="'studentid' in errors" class="form_error">${errors.studentid}</span>
35
          </div>
1294.1.9 by William Grant
Add a UserAdminView, to set fullname/studentid/admin.
36
        </table>
37
        <p><input type="submit" value="Save Changes" /></p>
38
      </form>
39
    </div>
40
  </body>
41
</html>