templates/Admin/Security/lostPassword.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2.     {% block meta %}
  3.         <meta charset="utf-8">
  4.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  5.         <meta name="description" content="">
  6.         <meta name="author" content="">
  7.     {% endblock %}
  8.     {% block title %}Mot de passe perdu - Union des Couveuses d'Entreprises{% endblock %}
  9.     {% block head_css %}
  10.         <link rel="stylesheet" type="text/css" href="{{ asset('bootstrap/css/bootstrap.min.css') }}">
  11.         <link rel="stylesheet" type="text/css" href="{{ asset('css/pace.css') }}">
  12.         <link rel="stylesheet" type="text/css" href="{{ asset('css/font-awesome.min.css') }}">
  13.         <link rel="stylesheet" type="text/css" href="{{ asset('css/endless.min.css') }}">
  14.         <link rel="stylesheet" type="text/css" href="{{ asset('css/login.css') }}">
  15.     {% endblock %}
  16. {% block body %}
  17.     <div id="overlay" class="transparent"></div>
  18.     <div class="login-wrapper">
  19.         <div class="text-center">
  20.             <h2 class="fadeInUp animation-delay8" style="font-weight:bold">
  21.                 <div id="login_logo"><img src="{{ asset('img/logo.png') }}" /></div>
  22.             </h2>
  23.         </div>
  24.         <div class="login-widget animation-delay1">
  25.             <div class="panel panel-default">
  26.                 <div class="panel-heading clearfix">
  27.                     <div class="pull-left">
  28.                         <i class="fa fa-lock fa-lg"></i> Mot de passe perdu
  29.                     </div>
  30. <!--                    <div class="pull-right">
  31.                         <span style="font-size:11px;">Don't have any account?</span>
  32.                         <a class="btn btn-default btn-xs login-link" href="register.html" style="margin-top:-2px;"><i class="fa fa-plus-circle"></i> Sign up</a>
  33.                     </div> -->
  34.                 </div>
  35.                 <div class="panel-body">
  36.                     <form class="form-login" action="{{ path('admin_lostPassword') }}" method="post" id="form_login">
  37.                         {% for flashMessage in app.session.flashbag.get('notice') %}
  38.                             <div class="alert alert-success">
  39.                                 {{ flashMessage|raw }}
  40.                             </div>
  41.                         {% endfor %}
  42.                         {% for flashMessage in app.session.flashbag.get('error') %}
  43.                             <div class="alert alert-danger">
  44.                                 {{ flashMessage|raw }}
  45.                             </div>
  46.                         {% endfor %}
  47.                         <div class="alert alert-info">
  48.                             <p><strong>Vous avez perdu votre mot de passe ?</strong><br />Entrez votre adresse mail ci-dessous. Un nouveau mot de passe vous sera envoyé à cette adresse.</p>
  49.                         </div>
  50.                         <div class="seperator"></div>
  51.                         <div class="form-group">
  52.                             <label>Adresse e-mail</label>
  53.                             <input type="email" placeholder="Adresse e-mail" class="form-control input-sm bounceIn animation-delay2" data-type="email" name="email" value="" data-required="true" >
  54.                         </div>
  55.                         <hr/>
  56.                         <a class="btn btn-warning btn-sm bounceIn animation-delay5 pull-right" href="{{ path('admin_login') }}">Retour vers la page de connexion</a>
  57.                         <a class="btn btn-success btn-sm bounceIn animation-delay5 pull-right" href="#" id="submit_btn"><i class="fa fa-repeat"></i> Valider</a>
  58.                     </form>
  59.                 </div>
  60.             </div><!-- /panel -->
  61.         </div><!-- /login-widget -->
  62.         {{ include("Admin/Default/footer.html.twig") }}
  63.     </div><!-- /login-wrapper -->
  64. {% endblock %}
  65. {% block footer_js %}
  66.         <script language="javascript" type="text/javascript" src="{{ asset('js/jquery-1.10.2.min.js') }}"></script>
  67.         <script language="javascript" type="text/javascript" src="{{ asset('bootstrap/js/bootstrap.min.js') }}"></script>
  68.         <script language="javascript" type="text/javascript" src="{{ asset('js/uncompressed/parsley.js') }}"></script>
  69.         <script language="javascript" type="text/javascript" src="{{ asset('js/modernizr.min.js') }}"></script>
  70.         <script language="javascript" type="text/javascript" src="{{ asset('js/jquery.popupoverlay.min.js') }}"></script>
  71.         <script language="javascript" type="text/javascript" src="{{ asset('js/jquery.slimscroll.min.js') }}"></script>
  72.         <script language="javascript" type="text/javascript" src="{{ asset('js/jquery.cookie.min.js') }}"></script>
  73.         <script language="javascript" type="text/javascript" src='{{ asset('js/pace.min.js') }}'></script>
  74.         <script language="javascript" type="text/javascript" src="{{ asset('js/endless/endless.js') }}"></script>
  75.         <script type="text/javascript">
  76.             $("input").keypress(function(event) {
  77.                 if (event.which == 13) {
  78.                     event.preventDefault();
  79.                     $('#submit_btn').trigger('click');
  80.                 }
  81.             });
  82.             $('#submit_btn').click(function(){
  83.                 $('#form_login').submit();
  84.             });
  85.             $( '#form_login' ).parsley();
  86.             var form = $('#form_login');
  87.             form.submit(function(){
  88.                 if(form.parsley('isValid') == false){
  89.                     return false;
  90.                 }else{
  91.                     $('.pace').each(function(){
  92.                         $(this).removeClass('pace-inactive').addClass('pace-active');
  93.                     });
  94.                     $('#overlay').fadeIn();
  95.                     return true;
  96.                 }
  97.             });
  98.             $('.loadPageContact').click(function(){
  99.                     $('#mydModal').modal('show');
  100.                     $('#mydModal .modal-content').html('<img src="{{ asset('img/ajax-loader.gif') }}" class="center-block" />');
  101.                     $.ajax({
  102.                         type: "POST",
  103.                         url: '#',
  104.                         success: function(html){
  105.                             $('#mydModal').attr('class','modal fade page page-contact in');
  106.                             $('#mydModal .modal-content').html(html);
  107.                         }
  108.                     });
  109.             });
  110.             $('.loadPageMentions').click(function(){
  111.                     $('#mydModal').modal('show');
  112.                     $('#mydModal .modal-content').html('<img src="{{ asset('img/ajax-loader.gif') }}" class="center-block" />');
  113.                     $.ajax({
  114.                         type: "POST",
  115.                         url: '{{ path('admin_pageMentions') }}',
  116.                         success: function(html){
  117.                             $('#mydModal').attr('class','modal fade page page-mentions in');
  118.                             $('#mydModal .modal-content').html(html);
  119.                         }
  120.                     });
  121.             });
  122.         </script>
  123. {% endblock %}