~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: 2010-07-20 05:55:20 UTC
  • Revision ID: coles.david@gmail.com-20100720055520-yxyfn2qqycfwboiq
URL quote paths in checkout URLs.

The two benefits of this are that we no longer have issues with spaces in 
submitted paths and also don't have to worry about shell escape characters 
(and possible shell injection to a lectures console).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
2
      xmlns:py="http://genshi.edgewall.org/">
3
3
  <head>
4
 
    <title>Administer - ${user.nick}</title>
 
4
    <title>Administer - ${context.nick}</title>
5
5
  </head>
6
6
  <body>
7
 
    <h1>Administer ${user.nick}</h1>
 
7
    <h1>Administer ${context.nick}</h1>
8
8
    <div id="ivle_padding">
9
9
      <form class="verticalform" action="" method="post">
10
10
        <div>
11
11
          <label for="field_login">Login:</label>
12
 
          <span id="field_login">${user.login}</span>
 
12
          <span id="field_login">${context.login}</span>
13
13
        </div>
14
14
        <div>
15
15
          <label for="field_unixid">UID:</label>
16
 
          <span id="field_unixid">${user.unixid}</span>
 
16
          <span id="field_unixid">${context.unixid}</span>
17
17
        </div>
18
18
        <div>
19
19
          <label for="field_disabled">Disabled:</label>
20
 
          <input py:if="user.state in (u'enabled', u'disabled')"
 
20
          <input py:if="context.state in (u'enabled', u'disabled')"
21
21
              py:attrs="{'disabled': 'disabled'} if disable_admin else {}"
22
22
              type="checkbox" name="disabled" id="field_disabled" />
23
 
          <span py:if="user.state not in (u'enabled', u'disabled')">
 
23
          <span py:if="context.state not in (u'enabled', u'disabled')">
24
24
            Has not accepted agreement
25
25
          </span>
26
26
        </div>
40
40
          <input type="text" name="studentid" id="field_studentid" size="40" />
41
41
          <span py:if="'studentid' in errors" class="form_error">${errors.studentid}</span>
42
42
        </div>
43
 
        <p><input type="submit" value="Save Changes" /></p>
 
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>
44
45
      </form>
45
46
    </div>
46
47
  </body>