templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}CRM{% endblock %}
  3. {% block body %}
  4.     <style>
  5.         html, body {
  6.             height: 100%;
  7.         }
  8.         body {
  9.             display: flex;
  10.             align-items: center;
  11.             padding-top: 40px;
  12.             padding-bottom: 40px;
  13.             background-color: #f5f5f5;
  14.         }
  15.     </style>
  16.     <main class="form-signin">
  17.         <form method="post">
  18.             {% if error %}
  19.                 <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  20.             {% endif %}
  21.             {% if app.user %}
  22.                 <div class="mb-3">
  23.                     You are logged in as {{ app.user.username }}, <a href="{{ path('app_logout') }}">Logout</a>
  24.                 </div>
  25.             {% endif %}
  26.             <h1 class="h3 mb-3 font-weight-normal">Вам газета: CRM</h1>
  27.             <label for="inputEmail">Email</label>
  28.             <input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" required autofocus>
  29.             <label for="inputPassword">Пароль</label>
  30.             <input type="password" name="password" id="inputPassword" class="form-control" required>
  31.             <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  32.             <div class="checkbox mb-3">
  33.                 <label>
  34.                     <input type="checkbox" name="_remember_me"> Запомнить меня
  35.                 </label>
  36.             </div>
  37.             <button class="w-100 btn btn-lg btn-primary" type="submit">Войти</button>
  38.             <p class="mt-5 mb-3 text-muted">© {{ "now"|date("Y") }} Alex</p>
  39.         </form>
  40.     </main>
  41. {% endblock %}