{% extends "base.html" %}
{% block title %}
	Edit profile - {{ user.username }}
{% endblock %}
{% block header %}
	<form method="post">
		{{ form.hidden_tag() }}
	<table>
		<tr valign="top">
			<td>
				<img src="{{ user.avatar(128) }}">
				<p><a href="https://www.gravatar.com/">Change pic</a></p>
			</td>
			<td>
				<p>
					{{ form.username.label }}<br>
					{{ form.username(size=32) }}<br>
					{% for error in form.username.errors %}
						<span class="error">[{{error}}]</span>
					{% endfor %}
				</p>
				<p>
					{{ form.about_me.label }}<br>
					{{ form.about_me(cols='50', rows='4') }}<br>
					{% for error in form.about_me.errors %}
						<span class="error">[{{error}}]</span>
					{% endfor %}
				</p>
				<p>{{ form.submit() }}</p>
			</td>
		</tr>
	</table>
	</form>
{% endblock %}
