wallabag/src/Wallabag/CoreBundle/Resources/views/themes/material/Security/login.html.twig

69 lines
2.6 KiB
Twig
Raw Normal View History

2015-08-06 01:22:45 +00:00
{% 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">
<h1>{% trans %}Login to wallabag{% endtrans %}</h1>
<div class="card sw">
<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 %}
2015-08-12 17:27:30 +00:00
<div class="row">
2015-08-06 01:22:45 +00:00
2015-08-12 17:27:30 +00:00
<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>
2015-08-06 01:22:45 +00:00
2015-08-12 10:27:12 +00:00
</div>
2015-08-06 01:22:45 +00:00
</div>
<div class="card-action">
2015-08-18 09:08:45 +00:00
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
2015-08-06 01:22:45 +00:00
<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 %}
2015-08-12 10:27:12 +00:00
{% endblock %}