~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-12-14 04:17:46 UTC
  • Revision ID: me@williamgrant.id.au-20091214041746-eurw04xssf4cvszc
Add ivle-dev-setup, a script to do most of the heavy lifting when setting up a new dev installation.

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