ID: 386018e4b581256ccbcbe5b75f334b54e88b2fdf
78 lines
—
2K —
View raw
| {% extends 'layout.html' %}
{# Set variables for base layour #}
{% set active_page = 'user' %}
{% set title = '' %}
{% block content %}
<form action="" method="post">
<div class="user">
<div>
User
</div>
<div>
{{ 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>
</div>
<div>
Since
</div>
<div>
{{ user.registered|datetime }} ({{ user.registered|ago }})
</div>
<div>
About
</div>
<div>
<textarea name="about" class="form-control" autofocus>{{ user.about }}</textarea>
</div>
<div>
Email
</div>
<div>
<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>
#}
</div>
<div>
Preferred feed
</div>
<div>
<p>
<label>
<input type="radio" name="preferred_feed" value="hot" {{ 'checked="checked"' if user.preferred_feed == 'hot' }}>
Hot
</label>
</p>
<p>
<label>
<input type="radio" name="preferred_feed" value="new" {{ 'checked="checked"' if user.preferred_feed == 'new' }}>
New
</label>
</p>
</div>
<div>
</div>
<div>
<input type="submit" name="update" value="Update" class="button button_info" />
</div>
</div>
</form>
{% endblock %}
|