{% extends 'base.html' %}

{% block content %}
<h2>Basic Form</h2>

<form method="post">
  {{ form.csrf_token }}
  {{ form.username.label }}<br>
  {{ form.username }}<br>
  {% if form.username.errors %}
    {% for message in form.username.errors %}
    <small class="error">{{ message }}</small><br>
    {% endfor %}
  {% endif %}
  {{ form.password.label }}<br>
  {{ form.password }}<br>
  {% if form.password.errors %}
    {% for message in form.password.errors %}
    <small class="error">{{ message }}</small><br>
    {% endfor %}
  {% endif %}
  {{ form.remember }}{{ form.remember.label }}<br>
  {{ form.submit }}<br>
</form>
{% endblock %}
