1 {% extends "FOSUserBundle::layout.html.twig" %}
3 {% block fos_user_content %}
4 <form action="{{ path('fos_user_security_check') }}" method="post" name="loginform">
5 <div class="card-content">
8 <script>Materialize.toast('{{ error.messageKey|trans(error.messageData, 'security') }}', 4000)</script>
11 {% for flashMessage in app.session.flashbag.get('notice') %}
12 <script>Materialize.toast('{{ flashMessage }}')</script>
17 <div class="input-field col s12">
18 <label for="username">{{ 'security.login.username'|trans }}</label>
19 <input type="text" id="username" name="_username" value="{{ last_username }}" autofocus />
22 <div class="input-field col s12">
23 <label for="password">{{ 'security.login.password'|trans }}</label>
24 <input type="password" id="password" name="_password" />
27 <div class="input-field col s12">
28 <input type="checkbox" id="remember_me" name="_remember_me" checked />
29 <label for="remember_me">{{ 'security.login.keep_logged_in'|trans }}</label>
34 <div class="card-action center">
35 <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
36 {% if registration_enabled %}
37 <a href="{{ path('fos_user_registration_register') }}" class="waves-effect waves-light grey btn">{{ 'security.login.register'|trans }}</a>
39 <button class="btn waves-effect waves-light" type="submit" name="send">
40 {{ 'security.login.submit'|trans }}
41 <i class="material-icons right">send</i>
44 <div class="card-action center">
45 <a href="{{ path('fos_user_resetting_request') }}">{{ 'security.login.forgot_password'|trans }}</a>
48 {% endblock fos_user_content %}