ID: 73a6b7e0c775ab2a6f30fff9da44599b43b9351f
70 lines
—
2K —
View raw
| {% extends 'layout.html' %}
{# Set variables for base layour #}
{% set active_page = 'user' %}
{% set title = '' %}
{% block content %}
<form action="" method="post">
<table class="user">
<tr>
<td>
User
</td>
<td>
{{ user.username }}
<div><a href="/user_activity/posts">Your posts</a></div>
<div><a href="/user_activity/comments">Your comments</a></div>
<div><a href="/user_activity/replies">Replies to your comments</a></div>
</td>
</tr>
<tr>
<td>
Since
</td>
<td>
{{ user.registered|datetime }} ({{ user.registered|ago }})
</td>
</tr>
<tr>
<td>
About
</td>
<td>
<textarea name="about" class="form-control">{{ user.about }}</textarea>
</td>
</tr>
<tr>
<td>
Email
</td>
<td>
<input type="text" name="email" class="form-control" value="{{ user.email if user.email else '' }}" />
<em>Required if you wish to change your password</em>
{#
<p>
<label>
<input type="checkbox" name="email_notifications" {{ user.email_notifications ? 'checked="checked"' }} />
Send notifications via email
</label>
</p>
#}
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="submit" name="update" value="Update" class="button button_info" />
</td>
</tr>
</table>
</form>
{% endblock %}
|