| 1 |
{% extends "base.html" %} |
| 2 |
|
| 3 |
{% from 'macros/forms.html' import with_errors %} |
| 4 |
|
| 5 |
{% block content_title %}Log in{% endblock %} |
| 6 |
|
| 7 |
{% block content %} |
| 8 |
<form method="post" action="{{ login_url }}"> |
| 9 |
<input type="hidden" name="next" value="{{ next or '' }}" /> |
| 10 |
{% if csrf_token %}{# Support for flask-seasurf #}<input type="hidden" name="_csrf_token" value="{{ csrf_token() }}">{% endif %} |
| 11 |
{% for field in form %} |
| 12 |
<div class="mb-3"> |
| 13 |
{{ field.label(class="form-label") }} |
| 14 |
{{ with_errors(field) }} |
| 15 |
</div> |
| 16 |
{% endfor %} |
| 17 |
<div class="form-actions"><button class="btn btn-primary" type="submit">Log in</button></div> |
| 18 |
</form> |
| 19 |
{% endblock %} |