~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>
1681 by William Grant
Refactor UserEditView to use BaseFormView.
4
    <title>Edit profile - ${context.nick}</title>
1294.1.1 by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView.
5
  </head>
6
  <body>
1681 by William Grant
Refactor UserEditView to use BaseFormView.
7
    <h1>Edit profile of ${context.nick}</h1>
1294.1.1 by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView.
8
    <div id="ivle_padding">
1442 by William Grant
Convert the user modification actions to a context actions menu.
9
      <div class="contextactions">
1681 by William Grant
Refactor UserEditView to use BaseFormView.
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>
1442 by William Grant
Convert the user modification actions to a context actions menu.
13
      </div>
1294.1.3 by William Grant
Link to +changepassword on +edit where appropriate.
14
      <p>
1681 by William Grant
Refactor UserEditView to use BaseFormView.
15
        ${context.fullname} (<b>${context.login}</b><py:if test="context.studentid"> / ${context.studentid}</py:if>)
1294.1.3 by William Grant
Link to +changepassword on +edit where appropriate.
16
      </p>
17
    
1681 by William Grant
Refactor UserEditView to use BaseFormView.
18
      <p py:if="context.admin">Privilege: <strong>IVLE administrator</strong></p>
1294.1.1 by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView.
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>
1782 by Matt Giuca
Added an entry on the user settings page to display the user's Subversion password. This was previously only possible through an arcane console command. Updated documentation. This fixes Launchpad bug #528450.
31
        <div>
32
          <label for="svn_pass">Subversion password:</label>
33
          <!-- Hidden from view for security reasons -->
34
          <span id="svn_pass" style="display: none">${svn_pass}</span>
35
          <a id="svn_pass_show" class="fakelink"
36
              onclick="$('#svn_pass').show(); $('#svn_pass_show').hide(); $('#svn_pass_hide').show()">(show)</a>
37
          <a id="svn_pass_hide" class="fakelink" style="display: none"
38
              onclick="$('#svn_pass').hide(); $('#svn_pass_show').show(); $('#svn_pass_hide').hide()">(hide)</a>
39
        </div>
1681 by William Grant
Refactor UserEditView to use BaseFormView.
40
        <div class="submit form_error" py:if="defined('error_value')" py:content="error_value" />
41
        <div class="submit"><input type="submit" value="Save" /></div>
1294.1.1 by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView.
42
      </form>
1294.1.7 by William Grant
Display account/password expiry times on +edit.
43
1681 by William Grant
Refactor UserEditView to use BaseFormView.
44
      <h3 py:if="context.pass_exp or context.acct_exp">Notices</h3>
45
      <p py:if="context.pass_exp">
1294.1.7 by William Grant
Display account/password expiry times on +edit.
46
        Your password will expire
1681 by William Grant
Refactor UserEditView to use BaseFormView.
47
        <span title="${format_datetime(context.pass_exp)}">${format_datetime_short(context.pass_exp)}</span>.
1294.1.7 by William Grant
Display account/password expiry times on +edit.
48
        You should change it before then to avoid having your account
49
        disabled.
50
      </p>
1681 by William Grant
Refactor UserEditView to use BaseFormView.
51
      <p py:if="context.acct_exp">
1294.1.7 by William Grant
Display account/password expiry times on +edit.
52
        Your IVLE account will expire
1681 by William Grant
Refactor UserEditView to use BaseFormView.
53
        <span title="${format_datetime(context.acct_exp)}">${format_datetime_short(context.acct_exp)}</span>.
1294.1.7 by William Grant
Display account/password expiry times on +edit.
54
      </p>
1294.1.1 by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView.
55
    </div>
56
  </body>
57
</html>