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

« back to all changes in this revision

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

  • Committer: David Coles
  • Date: 2010-08-30 03:26:13 UTC
  • Revision ID: coles.david@gmail.com-20100830032613-d14vng0jkelniu3l
python-console: Fix globals broken with new JSON library.

simplejson always returns unicode strings. cJSON would return ordinary strings 
if possible. cPickle.loads() only accepts strings. At present we use pickle 
version 0 so they should all works as ASCII strings. Higher versions of pickle 
are not plain ASCII and are likely to break this and so this should be fixed 
at some point.

Also replaced unconditional exception with one that catches Pickle errors. Not 
sure the best way to report failures of these functions.

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>Create user</title>
 
5
  </head>
 
6
  <body>
 
7
    <h1>Create user</h1>
 
8
    <div id="ivle_padding">
 
9
      <form class="verticalform" action="" method="post">
 
10
        <div>
 
11
          <label for="field_login">Login:</label>
 
12
          <input type="text" name="login" id="field_login" size="15" />
 
13
          <span py:if="'login' in errors" class="form_error">${errors.login}</span>
 
14
        </div>
 
15
        <div>
 
16
          <label for="field_admin">Administrator:</label>
 
17
          <input type="checkbox" name="admin" id="field_admin" />
 
18
          <span py:if="'admin' in errors" class="form_error">${errors.admin}</span>
 
19
        </div>
 
20
        <div>
 
21
          <label for="field_fullname">Full name:</label>
 
22
          <input type="text" name="fullname" id="field_fullname" size="40" />
 
23
          <span py:if="'fullname' in errors" class="form_error">${errors.fullname}</span>
 
24
        </div>
 
25
        <div>
 
26
          <label for="field_studentid">Student ID:</label>
 
27
          <input type="text" name="studentid" id="field_studentid" size="40" />
 
28
          <span py:if="'studentid' in errors" class="form_error">${errors.studentid}</span>
 
29
        </div>
 
30
        <div>
 
31
          <label for="email">Email address:</label>
 
32
          <input type="text" name="email" id="email" size="40" />
 
33
          <span py:if="'email' in errors" class="form_error">${errors.email}</span>
 
34
        </div>
 
35
        <div class="submit form_error" py:if="defined('error_value')" py:content="error_value" />
 
36
        <div class="submit"><input type="submit" value="Create" /></div>
 
37
      </form>
 
38
    </div>
 
39
  </body>
 
40
</html>