templates/security/inscription.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block title %}
  3.     {{ parent() }} | Inscription
  4.     | Profil
  5. {% endblock %}
  6. {% block stylesheets %}<link rel="stylesheet" href="{{ asset('css/inscription.css') }}">
  7. {% endblock %}
  8. {% block h1 %}Inscriprion
  9. {% endblock %}
  10. {% block content %}
  11.         <div class="wrapper col-12 d-flex flex-lg-row flex-column ">
  12.             <div class="col-lg-7 col-12">
  13.                 <img id="slideShow" class="d-block w-50 mx-auto" src="" alt="">
  14.             </div>
  15.             <div class=" col-lg-3 col-sm-8 mx-auto  d-flex flex-column justify-content-start">
  16.                 {{ form_start(formUser) }}
  17.                 {{ form_row(formUser.email) }}
  18.                 {{ form_label(formUser.password.first) }}
  19.                 <div class='col-12 input-group mb-3'>
  20.                     {{ form_widget(formUser.password.first, {'attr' : {"data-toggle" : "password"}}) }}
  21.                     <span class="input-group-text bg-white">
  22.                         <i class="fa fa-eye"></i>
  23.                     </span>
  24.                 </div>
  25.                 {{ form_errors(formUser.password.first) }}
  26.                 {{ form_label(formUser.password.second) }}
  27.                 <div class='col-12 mb-3  input-group'>
  28.                     {{ form_widget(formUser.password.second , {'attr' : {"data-toggle" : "password"}}) }}
  29.                     <span class="input-group-text bg-white">
  30.                         <i class="fa fa-eye"></i>
  31.                     </span>
  32.                 </div>
  33.                 {{ form_errors(formUser.password.second) }}
  34.                 {{ form_row(formUser.prenom) }}
  35.                 {{ form_row(formUser.nom) }}
  36.                 
  37.                 <input type="submit" value="S'inscrire" class="btn col-12  mt-3">
  38.                 {{ form_end(formUser) }}
  39.             </div>
  40.         </div>
  41.     </div>
  42.     <textarea name="" hidden id="photos" cols="30" rows="10">{{photos}}</textarea>
  43. {% endblock %}
  44. {% block javascripts %}
  45.     <script>
  46.         var photos = JSON.parse(document.querySelector('#photos').innerHTML)
  47. nbphotos = photos.length
  48. photoShow()
  49. setInterval("photoShow()", 5000);
  50. function photoShow() {
  51. let position = Math.trunc(Math.random() * (nbphotos))
  52. let nomPhoto = photos[position]
  53. let cheminPhoto = "{{ asset('img/photoProduitUpload/') }}"
  54. document.getElementById('slideShow').setAttribute('src', cheminPhoto + nomPhoto)
  55. }
  56.     </script>
  57.     <script  src="{{ asset("js/bootstrap-show-password.min.js") }}"></script>
  58. {% endblock %}