{% extends '@KunstmaanAdmin/Default/layout.html.twig' %}
{% block extrabodyclasses %}login{% endblock %}
{% block body %}
<h2 class="login__title">
{% if admin_logo is defined %}
<img class="app__header__brand__img" src="{{ asset(admin_logo) }}" alt="{{ websitetitle | trans }}">
{% else %}
{{ websitetitle | trans }}
{% endif %}
</h2>
<div class="login__form">
{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
<div class="alert alert-warning">
<strong>{{ 'form.warning' | trans }}: </strong>
{{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }}
<a href="{{ path('fos_user_security_logout') }}" class="btn btn-warning alert__action">
{{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
</a>
</div>
{% endif %}
{% for key, messages in app.session.flashbag.all() %}
<div class="alert alert-{{ key }} {{ key }}">
<button type="button" class="close" data-dismiss="alert">
<i class="fa fa-times"></i>
</button>
{% for message in messages %}
{{ message|trans({}, 'FOSUserBundle') }}
{% endfor %}
</div>
{% endfor %}
{% block fos_user_content %}{% endblock fos_user_content %}
{% block admin_link %}
{% if 'profile' in app.request.pathInfo and 'change-password' not in app.request.pathInfo %}
<a href="{{ path('KunstmaanAdminBundle_homepage') }}" class="btn btn-brand btn-block btn--raise-on-hover">
OK
</a>
{% endif %}
{% endblock %}
{% block forgot_password_link %}
{% if 'resetting' not in app.request.pathInfo and 'profile' not in app.request.pathInfo %}
<a href="{{ path('fos_user_resetting_request') }}" class="login__form__forgot-pw">
{{ 'kuma_admin.login.forgot_password'|trans }}
</a>
{% endif %}
{% endblock %}
</div>
{% block login_logo %}
<img src="/bundles/kunstmaanadmin/default-theme/img/kunstmaan/kunstmaan_white.svg" class="login__logo">
{% endblock %}
{% block footer %}{% endblock %}
{% endblock %}