2021-02-05 14:50:50 +01:00

32 lines
1.2 KiB
HTML

{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_errors, render_field, render_field_errors %}
{% block content %}
<h1>{{ _fsdomain('Login') }}</h1>
{% set next = request.args['next'] if 'next' in request.args and 'authorize' in request.args['next'] else 'manage' %}
<form action="{{ url_for_security('login', next=next) }}" method="POST" name="login_user_form">
{{ login_user_form.hidden_tag() }}
{{ render_field_with_errors(login_user_form.email) }}
{{ render_field_with_errors(login_user_form.password) }}
<div class="form-group form-check">
{{ login_user_form.remember(class="form-check-input")|safe }}
{{ login_user_form.remember.label(class="form-check-label") }}
</div>
{{ render_field_errors(login_user_form.csrf_token) }}
{{ render_field(login_user_form.submit) }}
</form>
<div class="card" class="my-4">
<div class="card-body">
<p class="card-text">{{ _('You do not have an account yet? Not a problem!') }}</p>
<div class="my-2">
<a href="{{ url_for_security('register') }}" class="btn btn-dark"><i class="fa fa-user-plus mr-2"></i> {{ _('Register for free') }}</a>
</div>
</div>
</div>
{% endblock %}