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. <div class="col-sm-6 col-md-4 col-md-offset-4">
  14. <div
  15. class="account-wall">
  16. <h2 style="color:white;">Réinitialiser mon mot de passe</h2>
  17. <!--<form method="POST" class="form-signin" action="{# path("login") #}" role="form"> -->
  18. <div class="append-icon">
  19. <input type="text" name="username" id="username" class="form-control form-white username" placeholder="Email" required>
  20. <i class="icon-user"></i>
  21. </div>
  22. <button type="button" id="verif_mail" class="btn btn-lg btn-danger btn-block ladda-button" data-style="expand-left">Envoyer</button>
  23. <!--</form>-->
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. {# include 'modal_login.html.twig' #}
  29. </body>
  30. <script>
  31. $(document).ready(function () {
  32. $('#verif_mail').on('click', function(){
  33. $.ajax({
  34. type: 'POST',
  35. url: "{{ path('ajax_verification_email') }}",
  36. data: {
  37. 'username': $('#username').val()
  38. }
  39. }).done(function (data) {
  40. if(data.success == true){
  41. notif(data.message);
  42. //window.location.href = '/login';
  43. }else{
  44. notif(data.message);
  45. }
  46. });
  47. });
  48. });
  49. </script>