templates/security/inscription_connexion.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block title %}
  3.     {{ parent() }}
  4.     | commande
  5. {% endblock %}
  6. {% block stylesheets %}<link rel="stylesheet" href="{{ asset('css/inscription_connexion.css') }}">
  7. {% endblock %}
  8. {% block h1 %}Profil
  9. {% endblock %}
  10. {% block content %}
  11.         <div class="wrapper col-12 d-flex flex-lg-row flex-column ">
  12.     
  13.             <div class="col-lg-4 col-8 mx-auto my-auto">
  14.             <form action="{{ path('connexion')}}" method="post" class='col-12 mx-auto text-center mt-5'>
  15.                     <h2>Connectez vous ou inscrivez-vous </h2>
  16.                     <div class="col-12 form-group mx-auto mt-2">
  17.                         <input type="text" id="inputEmail" class="form-control " name="_username" placeholder="Email">
  18.                     </div>
  19.                     <div class="col-12 form-group mx-auto my-3">
  20.                         <div class='input-group'>
  21.                             <input type="password" id="inputPassword" class="form-control" name="_password" data-toggle="password" placeholder="Mot de passe">
  22.                             <span class="input-group-text bg-white">
  23.                                 <i class="fa fa-eye"></i>
  24.                             </span>
  25.                         </div>
  26.                     </div>
  27.                      <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  28.                     <a class='reset-password-link' href="{{ path('app_forgot_password_request') }}">Mot de passe oubliĆ© ?</a>
  29.                     <input type="submit" value="Connexion" class="col-12 btn btn-dark my-3">
  30.                 </form>
  31.             </div>
  32.             <div class=" col-lg-4 col-8 mx-auto my-5 d-flex flex-column justify-content-center">
  33.                 {{ form_start(formUser) }}
  34.                 {{ form_row(formUser.email) }}
  35.                 {{ form_label(formUser.password.first) }}
  36.                 <div class='col-12 input-group mb-3'>
  37.                     {{ form_widget(formUser.password.first, {'attr' : {"data-toggle" : "password"}}) }}
  38.                     <span class="input-group-text bg-white">
  39.                         <i class="fa fa-eye"></i>
  40.                     </span>
  41.                 </div>
  42.                 {{ form_errors(formUser.password.first) }}
  43.                 {{ form_label(formUser.password.second) }}
  44.                 <div class='col-12 mb-3  input-group'>
  45.                     {{ form_widget(formUser.password.second , {'attr' : {"data-toggle" : "password"}}) }}
  46.                     <span class="input-group-text bg-white">
  47.                         <i class="fa fa-eye"></i>
  48.                     </span>
  49.                 </div>
  50.                 {{ form_errors(formUser.password.second) }}
  51.                 {{ form_row(formUser.prenom) }}
  52.                 {{ form_row(formUser.nom) }}
  53.                 
  54.                 <input type="submit" value="S'inscrire" class="btn col-12  mt-3">
  55.                 {{ form_end(formUser) }}
  56.             </div>
  57.         </div>
  58.     </div>
  59. {% endblock %}
  60. {% block javascripts %}
  61.     
  62. {% endblock %}