{% extends "backend.html.twig" %}
{% set page_title = 'backend.security.login' | trans %}
{% set page_showtitle = true %}
{% block content %}
<div class="columns">
<div class="column is-6 is-offset-3">
{% if error %}
<div class="notification is-danger">
{{ error.messageKey | trans(error.messageData, 'backend.security') }}
</div>
{% endif %}
<form method="post">
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<b-field label="{{ "backend.security.username" | trans }}" custom-class="has-text-light">
<b-input name="_username" placeholder="{{ "backend.security.username" | trans }}" icon="user"></b-input>
</b-field>
<b-field label="{{ "backend.security.password" | trans }}" custom-class="has-text-light">
<b-input name="_password" placeholder="{{ "backend.security.password" | trans }}" icon="key" type="password" password-reveal></b-input>
</b-field>
<b-field>
<b-checkbox name="_remember_me" class="has-text-light">{{ "backend.security.remember_me" | trans }}</b-checkbox>
</b-field>
<div class="field is-grouped">
<div class="control">
<button class="button is-link">{{ "backend.security.login" | trans }}</button>
</div>
<div class="control">
<a href="{{ url('security.password_forgotten') }}" class="button is-text has-text-light">{{ "backend.security.password_forgotten" | trans }} ?</a>
</div>
</div>
</form>
<div class="mt-5 has-text-centered">
<a href="{{ url('system.register.index') }}" class="has-text-light">Noch kein Konto ? Jetzt registrieren und kostenlos testen.</a>
</div>
</div>
</div>
{% endblock %}