~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>
1680 by William Grant
Refactor UserAdminView to use BaseFormView.
4
    <title>Administer - ${context.nick}</title>
1294.1.9 by William Grant
Add a UserAdminView, to set fullname/studentid/admin.
5
  </head>
6
  <body>
1680 by William Grant
Refactor UserAdminView to use BaseFormView.
7
    <h1>Administer ${context.nick}</h1>
1294.1.9 by William Grant
Add a UserAdminView, to set fullname/studentid/admin.
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">
1518 by William Grant
Remove a pointless and broken <table> from the user admin form.
10
        <div>
11
          <label for="field_login">Login:</label>
1680 by William Grant
Refactor UserAdminView to use BaseFormView.
12
          <span id="field_login">${context.login}</span>
1518 by William Grant
Remove a pointless and broken <table> from the user admin form.
13
        </div>
14
        <div>
15
          <label for="field_unixid">UID:</label>
1680 by William Grant
Refactor UserAdminView to use BaseFormView.
16
          <span id="field_unixid">${context.unixid}</span>
1518 by William Grant
Remove a pointless and broken <table> from the user admin form.
17
        </div>
18
        <div>
19
          <label for="field_disabled">Disabled:</label>
1680 by William Grant
Refactor UserAdminView to use BaseFormView.
20
          <input py:if="context.state in (u'enabled', u'disabled')"
1518 by William Grant
Remove a pointless and broken <table> from the user admin form.
21
              py:attrs="{'disabled': 'disabled'} if disable_admin else {}"
22
              type="checkbox" name="disabled" id="field_disabled" />
1680 by William Grant
Refactor UserAdminView to use BaseFormView.
23
          <span py:if="context.state not in (u'enabled', u'disabled')">
1518 by William Grant
Remove a pointless and broken <table> from the user admin form.
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>
1680 by William Grant
Refactor UserAdminView to use BaseFormView.
43
        <div class="submit form_error" py:if="defined('error_value')" py:content="error_value" />
44
        <div class="submit"><input type="submit" value="Save" /></div>
1294.1.9 by William Grant
Add a UserAdminView, to set fullname/studentid/admin.
45
      </form>
46
    </div>
47
  </body>
48
</html>