aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Resources/views/themes/material/Security/login.html.twig
blob: 4eb6d2b8c396d392298b27026ec73916d78eefe7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{% extends "WallabagCoreBundle::layout.html.twig" %}

{% block title %}{% trans %}login to your wallabag{% endtrans %}{% endblock %}

{% block body_class %}login{% endblock %}

{% block menu %}{% endblock %}
{% block messages %}{% endblock %}

{% block content %}
    <main class="valign-wrapper">
        <div class="valign row">
            <div class="card sw">
                <div class="center"><img src="{{ asset('themes/baggy/img/logo-other_themes.png') }}" alt="wallabag logo" /></div>
                <form action="{{ path('login_check') }}" method="post" name="loginform">
                    <div class="card-content">

                        {% if error %}
                            <span class="black-text">{{ error.message }}</span>
                        {% endif %}

                        {% for flashMessage in app.session.flashbag.get('notice') %}
                            <span class="black-text"><p>{{ flashMessage }}</p></span>
                        {% endfor %}

                        <div class="row">

                            <div class="input-field col s12">
                                <label for="username">{% trans %}Username{% endtrans %}</label>
                                <input type="text" id="username" name="_username" value="{{ last_username }}" />
                            </div>

                            <div class="input-field col s12">
                                <label for="password">{% trans %}Password{% endtrans %}</label>
                                <input type="password" id="password" name="_password" />
                            </div>

                            <div class="input-field col s12">
                                <input type="checkbox" id="remember_me" name="_remember_me" checked />
                                <label for="remember_me">{% trans %}Keep me logged in{% endtrans %}</label>
                            </div>

                        </div>

                    </div>
                    <div class="card-action">
                        <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
                        <button class="btn waves-effect waves-light" type="submit" name="send">
                            {% trans %}Login{% endtrans %}
                            <i class="mdi-content-send right"></i>
                        </button>
                    </div>
                </form>
            </div>
            <div class="center">
                <a href="{{ path('forgot_password') }}">{% trans %}Forgot your password?{% endtrans %}</a>
            </div>
        </div>
    </main>
    <style>
    main {
        padding: 0;
    }
    </style>
{% endblock %}

{% block footer %}
{% endblock %}