Files
edx-platform/profile.html
2011-12-11 15:57:23 -05:00

78 lines
2.8 KiB
HTML

<%inherit file="main.html" />
<script>
$(function() {
$("a#inline").fancybox({
'hideOnContentClick': false
});
})
</script>
<div align="right"><table><tr><td align=right valign=top><a href="/courseware">Digital Textbook</a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/discussion">Discussion</a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/profile"><b>Profile</b></a>
<span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/help">Help</a> <span class="ui-icon ui-icon-bullet" style="display:inline-block;"></span>
<a href="/logout">Log out</a>
</td></tr><tr><td valign=top>
</td></tr></table>
<center>
<br><br><br><br>
<h1> ${name} </h1>
<table><td align=right>Forum name:</td><td>${username}</td></tr>
<td align=right>E-mail:</td><td>${email}</td></tr>
<td align=right><a id="inline" href="#change_location">Location:</a></td><td><a id="inline" href="#change_location">${location}</a></td></tr>
<td align=right><a id="inline" href="#change_language">Language:</a></td><td><a id="inline" href="#change_location">${language}</a></td></tr>
<td align=right><a id="inline" href="#change_password">Password:</a></td><td><a id="inline" href="#change_location">********</a></td></tr></table>
<h1> Course Status </h1>
<table>
% for hw in homeworks:
<tr><td> ${ hw['chapter'] }</td><td>/</td> <td> ${ hw['section'] } </td><td>&nbsp;</td><td>
% for score in hw['scores']:
${ score[0] }/${ score[1] }
% endfor
</td></tr>
% endfor
</table>
</center>
<div style="display:none" ><div id="change_location"><h1>Change location</h1>
<table width=400><tr><td> Preferred format is city, state, country (so for us,
&quot;Cambridge, Massachusetts, USA&quot;), but give as
much or as little detail as you want.
<p>
<div align=right>
<input id="id_loc_text" type="text" name="loc_text" maxlength="75" value="${location}" />
<input type="button" id="change_loc_button" value="Change" /></p>
</div>
</td></tr></table>
</div></div>
<div style="display:none"><div id="change_language"><h1>Change language</h1>
<table width=400><tr><td> Update your language:
<p>
<div align=right>
<input id="id_lang_text" type="text" name="lang_text" maxlength="75" value="${language}" />
<input type="button" id="change_lang_button" value="Change" /></p>
</div>
</td></tr></table>
</div></div>
<div style="display:none"><div id="change_password">
<table width=400><tr><td> <h1>Password reset</h1>
<p>Hit the button below, and we'll e-mail you a password reset link at ${email}.</p>
<p>
<div align=right>
<input id="id_email" type="hidden" name="email" maxlength="75" value="${email}" />
<input type="button" id="pwd_change_button" value="E-mail me" /></p>
</div>
</td></tr></table>
</div></div>
<hr>