~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: 2012-06-28 01:52:02 UTC
  • Revision ID: me@williamgrant.id.au-20120628015202-f6ru7o367gt6nvgz
Hah

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 - ${user.nick}</title>
 
4
    <title>Edit profile - ${context.nick}</title>
5
5
  </head>
6
6
  <body>
7
 
    <h1>Edit profile of ${user.nick}</h1>
 
7
    <h1>Edit profile of ${context.nick}</h1>
8
8
    <div id="ivle_padding">
9
9
      <div class="contextactions">
10
 
        <a py:if="req.user.admin" class="manageaction" href="/~${user.login}/+admin">Administer user</a>
11
 
        <a py:if="user.passhash" class="keyaction" href="/~${user.login}/+changepassword">Change password</a>
12
 
        <a py:if="req.user.admin" class="keyaction" href="/~${user.login}/+resetpassword">Reset password</a>
 
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
13
      </div>
14
14
      <p>
15
 
        ${user.fullname} (<b>${user.login}</b><py:if test="user.studentid"> / ${user.studentid}</py:if>)
 
15
        ${context.fullname} (<b>${context.login}</b><py:if test="context.studentid"> / ${context.studentid}</py:if>)
16
16
      </p>
17
17
    
18
 
      <p py:if="user.admin">Privilege: <strong>IVLE administrator</strong></p>
 
18
      <p py:if="context.admin">Privilege: <strong>IVLE administrator</strong></p>
19
19
 
20
20
      <form class="verticalform" action="" method="post">
21
21
        <div>
28
28
          <input type="text" name="email" id="email" size="40" />
29
29
          <span py:if="'email' in errors" class="form_error">${errors.email}</span>
30
30
        </div>
31
 
        <p><input type="submit" value="Save Changes" /></p>
 
31
        <div>
 
32
          <label for="svn_pass">Subversion URL:</label>
 
33
          ${svn_url}
 
34
          <a class="helpaction" href="/+help/Files/Subversion#external" title="What's this?"></a>
 
35
        </div>
 
36
        <div>
 
37
          <label for="svn_pass">Subversion password:</label>
 
38
          <!-- Hidden from view for security reasons -->
 
39
          <span id="svn_pass" style="display: none">${svn_pass}</span>
 
40
          <a id="svn_pass_show" class="fakelink"
 
41
              onclick="$('#svn_pass').show(); $('#svn_pass_show').hide(); $('#svn_pass_hide').show()">(show)</a>
 
42
          <a id="svn_pass_hide" class="fakelink" style="display: none"
 
43
              onclick="$('#svn_pass').hide(); $('#svn_pass_show').show(); $('#svn_pass_hide').hide()">(hide)</a>
 
44
        </div>
 
45
        <div class="submit form_error" py:if="defined('error_value')" py:content="error_value" />
 
46
        <div class="submit"><input type="submit" value="Save" /></div>
32
47
      </form>
33
48
 
34
 
      <h3 py:if="user.pass_exp or user.acct_exp">Notices</h3>
35
 
      <p py:if="user.pass_exp">
 
49
      <h3 py:if="context.pass_exp or context.acct_exp">Notices</h3>
 
50
      <p py:if="context.pass_exp">
36
51
        Your password will expire
37
 
        <span title="${format_datetime(user.pass_exp)}">${format_datetime_short(user.pass_exp)}</span>.
 
52
        <span title="${format_datetime(context.pass_exp)}">${format_datetime_short(context.pass_exp)}</span>.
38
53
        You should change it before then to avoid having your account
39
54
        disabled.
40
55
      </p>
41
 
      <p py:if="user.acct_exp">
 
56
      <p py:if="context.acct_exp">
42
57
        Your IVLE account will expire
43
 
        <span title="${format_datetime(user.acct_exp)}">${format_datetime_short(user.acct_exp)}</span>.
 
58
        <span title="${format_datetime(context.acct_exp)}">${format_datetime_short(context.acct_exp)}</span>.
44
59
      </p>
45
60
    </div>
46
61
  </body>