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

1294.1.1 by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView.
1
<html xmlns="http://www.w3.org/1999/xhtml"
2
      xmlns:py="http://genshi.edgewall.org/">
3
  <head>
4
    <title>Edit profile - ${user.nick}</title>
5
  </head>
6
  <body>
7
    <h1>Edit profile of ${user.nick}</h1>
8
    <div id="ivle_padding">
1442 by William Grant
Convert the user modification actions to a context actions menu.
9
      <div class="contextactions">
1445 by William Grant
Change the user admin link from editaction to manageaction.
10
        <a py:if="req.user.admin" class="manageaction" href="/~${user.login}/+admin">Administer user</a>
1442 by William Grant
Convert the user modification actions to a context actions menu.
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>
13
      </div>
1294.1.3 by William Grant
Link to +changepassword on +edit where appropriate.
14
      <p>
15
        ${user.fullname} (<b>${user.login}</b><py:if test="user.studentid"> / ${user.studentid}</py:if>)
16
      </p>
17
    
1294.1.1 by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView.
18
      <p py:if="user.admin">Privilege: <strong>IVLE administrator</strong></p>
19
1294.1.10 by William Grant
Switch to CSS form layout for the user edit views.
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>
1294.1.1 by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView.
31
        <p><input type="submit" value="Save Changes" /></p>
32
      </form>
1294.1.7 by William Grant
Display account/password expiry times on +edit.
33
34
      <h3 py:if="user.pass_exp or user.acct_exp">Notices</h3>
35
      <p py:if="user.pass_exp">
36
        Your password will expire
37
        <span title="${format_datetime(user.pass_exp)}">${format_datetime_short(user.pass_exp)}</span>.
38
        You should change it before then to avoid having your account
39
        disabled.
40
      </p>
41
      <p py:if="user.acct_exp">
42
        Your IVLE account will expire
43
        <span title="${format_datetime(user.acct_exp)}">${format_datetime_short(user.acct_exp)}</span>.
44
      </p>
1294.1.1 by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView.
45
    </div>
46
  </body>
47
</html>