templates/app/security/partials/login/form.html.twig line 1

Open in your IDE?
  1. {% block error %}
  2.     {% if error %}
  3.         <div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  4.     {% endif %}
  5. {% endblock %}
  6. {% block form %}
  7.     <form method="post" action="{{ path('app_login') }}">
  8.         <fieldset>
  9.             <div class="login-wrapper">
  10.                 {# <legend class="text-center">Je me connecte</legend> #}
  11.                 <h3 class="text-center">Je me connecte</h3>
  12.                 
  13.                 <div class="form-group mt-4">
  14.                     <label for="inputEmail">Identifiant*</label>
  15.                     <input type="email" class="form-control" name="email" id="inputEmail" required autofocus>
  16.                 </div>
  17.                 
  18.                 <div class="form-group mb-0">
  19.                     <label for="inputPassword">Mot de passe*</label>
  20.                     <input type="password" class="form-control" name="password" id="inputPassword" required>
  21.                 </div>
  22.                 
  23.                 <p class="text-end mt-3">
  24.                     <a class="link" href="{{ path('kiwi_forgotten_password_user') }}">Mot de passe oubliĆ© ?</a>
  25.                 </p>
  26.                 <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  27.                 
  28.                 {% if target_path is defined and target_path is not null %}
  29.                     {% if target_path_params is defined and target_path_params is not null %}
  30.                         <input type="hidden" name="_target_path" value="{{ path(target_path, target_path_params) }}" />
  31.                     {% else %}
  32.                         <input type="hidden" name="_target_path" value="{{ path(target_path) }}" />
  33.                     {% endif %}
  34.                 {% endif %}
  35.                 <div class="btn-bar">
  36.                     <button class="btn btn-primary col-md-12 mt-4" type="submit">Connexion</button>
  37.                     <p class="champs-obligatoire mt-3">*Champs obligatoires</p>
  38.                 </div>
  39.             </div>
  40.             <div class="modal-register-wrapper">
  41.                 <h2 class="text-center mt-4">Pas encore membre ?</h2>
  42.                 <div class="btn-bar text-center mt-3">
  43.                     <a href="{{ path(register_path | default('kiwi_register_user')) }}" class="btn btn-secondary col-md-12">Je m'inscris</a>
  44.                 </div>
  45.             </div>
  46.         </fieldset>
  47.     </form>
  48. {% endblock %}