templates/security/login.html.twig line 1

Open in your IDE?
  1. {% extends 'layout.html.twig' %}
  2. {% block nav %}{% endblock %}
  3. {% block content %}
  4. <h2 class="border-bottom">评审登陆</h2>
  5. {% if error %}
  6. <div>
  7.     {{ error.messageKey|trans(error.messageData, 'security') }}
  8. </div>
  9. {% endif %}
  10. <form action="{{ path('review_login') }}" method="post">
  11.     <div class="mb-3">
  12.         <label for="username" class="form-label">用户名</label>
  13.         <input type="text" class="form-control" id="username" name="_username" value="{{ last_username }}">
  14.     </div>
  15.     <div class="mb-3">
  16.         <label for="password" class="form-label">密码</label>
  17.         <input type="password" class="form-control" id="password" name="_password">
  18.     </div>
  19.     <button type="submit" class="btn btn-primary">登录</button>
  20. </form>
  21. {% endblock %}