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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-06-29 03:42:31 UTC
  • Revision ID: grantw@unimelb.edu.au-20090629034231-ceo0aoc68gmyg2ww
Revive a removed part of the top-level crash handler.

fileservice is still raising IVLEErrors, relying on the assumption that
the HTTP status code in them will end up in the response. That job was
actually done by the top level crash handler.

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>Edit profile - ${context.nick}</title>
5
 
  </head>
6
 
  <body>
7
 
    <h1>Edit profile of ${context.nick}</h1>
8
 
    <div id="ivle_padding">
9
 
      <div class="contextactions">
10
 
        <a py:if="req.user.admin" class="manageaction" href="/~${context.login}/+admin">Administer user</a>
11
 
        <a py:if="context.passhash" class="keyaction" href="/~${context.login}/+changepassword">Change password</a>
12
 
        <a py:if="req.user.admin" class="keyaction" href="/~${context.login}/+resetpassword">Reset password</a>
13
 
      </div>
14
 
      <p>
15
 
        ${context.fullname} (<b>${context.login}</b><py:if test="context.studentid"> / ${context.studentid}</py:if>)
16
 
      </p>
17
 
    
18
 
      <p py:if="context.admin">Privilege: <strong>IVLE administrator</strong></p>
19
 
 
20
 
      <form class="verticalform" action="" method="post">
21
 
        <div>
22
 
          <label for="nick">Display name:</label>
23
 
          <input type="text" name="nick" id="nick" size="40" />
24
 
          <span py:if="'nick' in errors" class="form_error">${errors.nick}</span>
25
 
        </div>
26
 
        <div>
27
 
          <label for="email">Email address:</label>
28
 
          <input type="text" name="email" id="email" size="40" />
29
 
          <span py:if="'email' in errors" class="form_error">${errors.email}</span>
30
 
        </div>
31
 
        <div class="submit form_error" py:if="defined('error_value')" py:content="error_value" />
32
 
        <div class="submit"><input type="submit" value="Save" /></div>
33
 
      </form>
34
 
 
35
 
      <h3 py:if="context.pass_exp or context.acct_exp">Notices</h3>
36
 
      <p py:if="context.pass_exp">
37
 
        Your password will expire
38
 
        <span title="${format_datetime(context.pass_exp)}">${format_datetime_short(context.pass_exp)}</span>.
39
 
        You should change it before then to avoid having your account
40
 
        disabled.
41
 
      </p>
42
 
      <p py:if="context.acct_exp">
43
 
        Your IVLE account will expire
44
 
        <span title="${format_datetime(context.acct_exp)}">${format_datetime_short(context.acct_exp)}</span>.
45
 
      </p>
46
 
    </div>
47
 
  </body>
48
 
</html>