templates/User/password_forgot.html.twig line 1

Open in your IDE?
  1. {{ include("header.html.twig") }}
  2. <script src="{{ asset('plugins/jquery/jquery.min.js') }}"></script>
  3. <script src="{{ asset('plugins/jquery/jquery-ui.min.js') }}"></script>
  4. <script src="{{ asset('plugins/bootstrap/js/bootstrap.js') }}"></script>
  5. <script src="{{ asset('plugins/bootstrap-notify/bootstrap-notify.js') }}"></script>
  6. <script src="{{ asset('custom/main/custom.js') }}"></script>
  7. <body
  8.     class="account separate-inputs" data-page="login">
  9.     <!-- BEGIN LOGIN BOX -->
  10.     <div class="container" id="login-block">
  11.         <div class="row">
  12.             <img style="max-width:600px;" class="center-block" src="{{asset('logo2.png')}}"/>
  13.             
  14.             <div class="col-sm-6 col-md-4 col-md-offset-4">
  15.                 <div
  16.                     class="account-wall">
  17.                     <h2 style="color:white;">RĂ©initialiser mon mot de passe</h2>
  18.                     <!--<form method="POST" class="form-signin" action="{# path("login") #}" role="form"> -->
  19.                     <div class="append-icon">
  20.                         <input type="text" name="username" id="username" class="form-control form-white username" placeholder="Email" required>
  21.                         <i class="icon-user"></i>
  22.                     </div>
  23.                     <button type="button" id="verif_mail" class="btn btn-lg btn-danger btn-block ladda-button" data-style="expand-left">Envoyer</button>
  24.                     <!--</form>-->
  25.                 </div>
  26.             </div>
  27.         </div>
  28.     </div>
  29.     {# include 'modal_login.html.twig' #}
  30. </body>
  31. <script>
  32.     $(document).ready(function () {
  33. $('#verif_mail').on('click', function(){
  34.     $.ajax({
  35.         type: 'POST',
  36.         url: "{{ path('ajax_login') }}",
  37.         data: {
  38.             'function': 'verifEmail',
  39.             'username': $('#username').val()
  40.         }
  41.     }).done(function (data) {
  42.         if(data.success == true){
  43.             notif(data.message);
  44.             //window.location.href = '/login';
  45.         }else{
  46.             notif(data.message);
  47.         }
  48.     });
  49. });
  50. });
  51. </script>