{% extends 'layout.html' %} {% block content %}
{{form.hidden_tag()}}
Login
{{form.username.label(class="form-control-label")}} {% if form.username.errors %} {{form.username(class="form-control form-control-lg is-invalid")}}
{% for error in form.username.errors %} {{ error }} {% endfor %}
{% else %} {{form.username(class="form-control form-control-lg")}} {% endif %}
{{form.password.label(class="form-control-label")}} {% if form.password.errors %} {{form.password(class="form-control form-control-lg is-invalid")}}
{% for error in form.password.errors %} {{ error }} {% endfor %}
{% else %} {{form.password(class="form-control form-control-lg")}} {% endif %}
{{form.submit(class="btn btn-info")}}
{% endblock %}