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

« back to all changes in this revision

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

  • Committer: David Coles
  • Date: 2009-12-02 01:25:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1328.
  • Revision ID: coles.david@gmail.com-20091202012502-lg5zoxtx4h7i44mj
Return 404 when subversion returns ERR_ENTRY_NOT_FOUND errors in services

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    <h1>Administer ${user.nick}</h1>
8
8
    <div id="ivle_padding">
9
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>
 
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
 
 
20
          <div>
 
21
            <label for="field_admin">Administrator:</label>
 
22
            <input type="checkbox" name="admin" id="field_admin" />
 
23
            <span py:if="'admin' in errors" class="form_error">${errors.admin}</span>
 
24
          </div>
 
25
          <div>
 
26
            <label for="field_fullname">Full name:</label>
 
27
            <input type="text" name="fullname" id="field_fullname" size="40" />
 
28
            <span py:if="'fullname' in errors" class="form_error">${errors.fullname}</span>
 
29
          </div>
 
30
          <div>
 
31
            <label for="field_studentid">Student ID:</label>
 
32
            <input type="text" name="studentid" id="field_studentid" size="40" />
 
33
            <span py:if="'studentid' in errors" class="form_error">${errors.studentid}</span>
 
34
          </div>
 
35
        </table>
43
36
        <p><input type="submit" value="Save Changes" /></p>
44
37
      </form>
45
38
    </div>