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"> |
|
1294.1.3
by William Grant
Link to +changepassword on +edit where appropriate. |
9 |
<p>
|
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> |
|
1294.1.5
by William Grant
Add a view for admins to reset other users' passwords. |
12 |
<a py:if="req.user.admin" href="/~${user.login}/+resetpassword">(reset password)</a> |
1294.1.9
by William Grant
Add a UserAdminView, to set fullname/studentid/admin. |
13 |
<a py:if="req.user.admin" href="/~${user.login}/+admin">(administer)</a> |
1294.1.3
by William Grant
Link to +changepassword on +edit where appropriate. |
14 |
</p> |
15 |
||
1294.1.1
by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView. |
16 |
<p py:if="user.admin">Privilege: <strong>IVLE administrator</strong></p> |
17 |
||
1294.1.10
by William Grant
Switch to CSS form layout for the user edit views. |
18 |
<form class="verticalform" action="" method="post"> |
19 |
<div>
|
|
20 |
<label for="nick">Display name:</label> |
|
21 |
<input type="text" name="nick" id="nick" size="40" /> |
|
22 |
<span py:if="'nick' in errors" class="form_error">${errors.nick}</span> |
|
23 |
</div> |
|
24 |
<div>
|
|
25 |
<label for="email">Email address:</label> |
|
26 |
<input type="text" name="email" id="email" size="40" /> |
|
27 |
<span py:if="'email' in errors" class="form_error">${errors.email}</span> |
|
28 |
</div> |
|
1294.1.1
by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView. |
29 |
<p><input type="submit" value="Save Changes" /></p> |
30 |
</form> |
|
1294.1.7
by William Grant
Display account/password expiry times on +edit. |
31 |
|
32 |
<h3 py:if="user.pass_exp or user.acct_exp">Notices</h3> |
|
33 |
<p py:if="user.pass_exp"> |
|
34 |
Your password will expire |
|
35 |
<span title="${format_datetime(user.pass_exp)}">${format_datetime_short(user.pass_exp)}</span>. |
|
36 |
You should change it before then to avoid having your account |
|
37 |
disabled. |
|
38 |
</p> |
|
39 |
<p py:if="user.acct_exp"> |
|
40 |
Your IVLE account will expire |
|
41 |
<span title="${format_datetime(user.acct_exp)}">${format_datetime_short(user.acct_exp)}</span>. |
|
42 |
</p> |
|
1294.1.1
by William Grant
Add UserEditView, a non-AJAX partial replacement of UserSettingsView. |
43 |
</div> |
44 |
</body> |
|
45 |
</html> |