templates/front/connexion_inscription.html.twig line 1

Open in your IDE?
  1. {% extends 'base_client.html.twig' %}
  2. {% block body %}
  3. <div class="formulaire-login">
  4.     
  5.         <form method="post" class="form-inscription">
  6.         <div class="div-input div-registration">
  7.             <h1>VOXDIA</h1>
  8.         
  9.             <h2>Sign in</h2>
  10.             {{ error|raw }}
  11.             <div class="input-form">
  12.                 <div class="input-form-input">
  13.                     {{ form_widget(form.email, { 'attr': {'class': 'input-registration-email input-style', 'placeholder': 'Email *', 'type': 'email', 'autofocus': ''}}) }}
  14.                 </div>
  15.             </div>
  16.             <div class="input-form">
  17.                 <div class="input-form-input">
  18.                     {{ form_widget(form.password, { 'attr': {'class': 'input-registration-password input-style', 'placeholder': 'Password *', 'minlength': '8'}}) }}
  19.                 </div>
  20.             </div>
  21.             <div class="input-form">
  22.                 <div class="input-form-input">
  23.                     {{ form_widget(form.passwordConfirm, { 'attr': {'class': 'input-registration-confirm-password input-style', 'placeholder': 'Confirm password *', 'minlength': '8'}}) }}
  24.                 </div>
  25.             </div>
  26.             <div class="input-form">
  27.                 <div class="input-form-input">
  28.                     {{ form_widget(form.name, { 'attr': {'class': 'input-registration-first-name input-style', 'placeholder': 'First name', 'autocomplete':'off'}}) }}
  29.                 </div>
  30.             </div>
  31.             
  32.             <div class="input-form">
  33.                 <div class="input-form-input">
  34.                     {{ form_widget(form.lastname, { 'attr': {'class': 'input-registration-last-name input-style', 'placeholder': 'Last name', 'autocomplete':'off'}}) }}
  35.                 </div>
  36.             </div>
  37.             {{ form_row(form._token) }}
  38.             <div>
  39.                 <button class="input-form-submit button-style" type="submit" style="width: 100%;">Continue</button>
  40.             </div>
  41.             
  42.             <hr class="input-form-hr" />
  43.             
  44.             <a href="{{ path('app_login') }}">
  45.                 <div class="input-form-connexion">
  46.                     Connexion
  47.                 </div>
  48.             </a>
  49.         </div>
  50.     </form>
  51. </div>
  52. <script>
  53.     $(document).ready( function () {
  54.                 
  55.         $('.input-form-submit').click(function (e) {
  56.             e.preventDefault();
  57.             $('.input-form-submit').attr('disabled', 'disabled').css('opacity', '0.3');
  58.             if ($('.input-registration-confirm-password').val() != $('.input-registration-password').val()) {
  59.                 alert('Mdp different');
  60.             } else {
  61.                 $('.form-inscription').submit();
  62.             }
  63.         });
  64.     });
  65. </script>
  66. {% endblock %}