templates/login.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}
  3.     Вход
  4. {% endblock %}
  5. {% block nav %}
  6.     <h1>Вход</h1>
  7. {% endblock %}
  8. {% block body %}
  9.     {% if error %}
  10.         <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  11.     {% endif %}
  12.     <form action="{{ path('login') }}" method="post">
  13.         <label for="username">Username:</label>
  14.         <input type="text" id="username" name="_username" value="{{ last_username }}"/>
  15.         <br/><br/>
  16.         <label for="password">Password:</label>
  17.         <input type="password" id="password" name="_password"/>
  18.         {#
  19.             If you want to control the URL the user is redirected to on success (more details below)
  20.         #}
  21.         <input type="hidden" name="_target_path" value="/"/>
  22.         <br/><br/>
  23.         <button type="submit">login</button>
  24.     </form>
  25. {% endblock %}