vendor/kunstmaan/admin-bundle/Resources/views/layout.html.twig line 1

Open in your IDE?
  1. {% extends '@KunstmaanAdmin/Default/layout.html.twig' %}
  2. {% block extrabodyclasses %}login{% endblock %}
  3. {% block body %}
  4.     <h2 class="login__title">
  5.         {% if admin_logo is defined %}
  6.         <img class="app__header__brand__img" src="{{ asset(admin_logo) }}" alt="{{ websitetitle | trans }}">
  7.         {% else %}
  8.         {{ websitetitle | trans }}
  9.         {% endif %}
  10.     </h2>
  11.     <div class="login__form">
  12.         {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
  13.             <div class="alert alert-warning">
  14.                 <strong>{{ 'form.warning' | trans }}: </strong>
  15.                 {{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }}
  16.                 <a href="{{ path('fos_user_security_logout') }}" class="btn btn-warning alert__action">
  17.                     {{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
  18.                 </a>
  19.             </div>
  20.         {% endif %}
  21.         {% for key, messages in app.session.flashbag.all() %}
  22.             <div class="alert alert-{{ key }} {{ key }}">
  23.                 <button type="button" class="close" data-dismiss="alert">
  24.                     <i class="fa fa-times"></i>
  25.                 </button>
  26.                 {% for message in messages %}
  27.                     {{ message|trans({}, 'FOSUserBundle') }}
  28.                 {% endfor %}
  29.             </div>
  30.         {% endfor %}
  31.         {% block fos_user_content %}{% endblock fos_user_content %}
  32.         {% block admin_link %}
  33.             {% if 'profile' in app.request.pathInfo and 'change-password' not in app.request.pathInfo %}
  34.                 <a href="{{ path('KunstmaanAdminBundle_homepage') }}" class="btn btn-brand btn-block btn--raise-on-hover">
  35.                     OK
  36.                 </a>
  37.             {% endif %}
  38.         {% endblock %}
  39.         {% block forgot_password_link %}
  40.             {% if 'resetting' not in app.request.pathInfo and 'profile' not in app.request.pathInfo %}
  41.                 <a href="{{ path('fos_user_resetting_request') }}" class="login__form__forgot-pw">
  42.                     {{ 'kuma_admin.login.forgot_password'|trans }}
  43.                 </a>
  44.             {% endif %}
  45.         {% endblock %}
  46.     </div>
  47.     {% block login_logo %}
  48.         <img src="/bundles/kunstmaanadmin/default-theme/img/kunstmaan/kunstmaan_white.svg" class="login__logo">
  49.     {% endblock %}
  50.     {% block footer %}{% endblock %}
  51. {% endblock %}