{% extends "base.html" %}

{% block header %}
<h1>{% block title %}Login{% endblock %}</h1>
{% endblock %}

{% block content %}
	<form method="POST" novalidate>
		{{ form.hidden_tag() }}
		<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.password.label }}<br>
			{{ form.password(size=32) }}
			{% for error in form.password.errors %}
				<span class="error">[{{ error }}]</span>
			{% endfor %}
		</p>
		<p>
			{{ form.remember_me() }} {{ form.remember_me.label }}
		</p>
		<p>{{ form.submit() }}</p>
		<p>New User? <a href="{{ url_for('auth.register') }}">Register</a></p>
	</form>
{% endblock %}
