custom login form added

This commit is contained in:
Joachim Lusiardi 2016-04-17 09:34:11 +02:00
parent f6f1d960b7
commit a9b2781ae3
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{% extends "layout.html" %}
{% from "security/_macros.html" import render_field_with_errors, render_field %}
{% block body %}
{% include "security/_messages.html" %}
<form class='form-horizontal' action="{{ url_for_security('login') }}" 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) }}
{{ render_field_with_errors(login_user_form.remember) }}
{{ render_field(login_user_form.next) }}
{{ render_field(login_user_form.submit) }}
</form>
{% include "security/_menu.html" %}
{% endblock %}