templates/security/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Admin login{% endblock %}
  3. {% block body %}
  4.     <section id="login">
  5.         <form action="{{ path('app_security_login') }}" method="post">
  6.             <div class="mb-5 text-center">
  7.                 <img src="{{ asset('build/static/logo-Sogec-Marketing.png') }}" alt="sogec logo">
  8.             </div>
  9.             <div class="mb-3">
  10.                 <label for="username">Username</label>
  11.                 <input class="form-control form-control-sm" type="text" id="username" name="_username" value="{{ last_username }}"/>
  12.             </div>
  13.             <div class="mb-3">
  14.                 <label for="password">Mot de passe</label>
  15.                 <input class="form-control form-control-sm" type="password" id="password" name="_password" autocomplete="off"/>
  16.             </div>
  17.             <input type="hidden" name="go_to" value="{{ path('admin_generate_ig') }}"/>
  18.             {% if error %}
  19.                 <div class="alert alert-danger">{{ error.messageKey|trans }}</div>
  20.             {% endif %}
  21.             <div class="d-grid gap-2">
  22.                 <button class="btn btn-primary" type="submit">Connexion</button>
  23.             </div>
  24.         </form>
  25.     </section>
  26. {% endblock %}