{% extends "base.html.twig" %}
{% block meta %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
{% endblock %}
{% block title %}Mot de passe perdu - Union des Couveuses d'Entreprises{% endblock %}
{% block head_css %}
<link rel="stylesheet" type="text/css" href="{{ asset('bootstrap/css/bootstrap.min.css') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('css/pace.css') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('css/font-awesome.min.css') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('css/endless.min.css') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('css/login.css') }}">
{% endblock %}
{% block body %}
<div id="overlay" class="transparent"></div>
<div class="login-wrapper">
<div class="text-center">
<h2 class="fadeInUp animation-delay8" style="font-weight:bold">
<div id="login_logo"><img src="{{ asset('img/logo.png') }}" /></div>
</h2>
</div>
<div class="login-widget animation-delay1">
<div class="panel panel-default">
<div class="panel-heading clearfix">
<div class="pull-left">
<i class="fa fa-lock fa-lg"></i> Mot de passe perdu
</div>
<!-- <div class="pull-right">
<span style="font-size:11px;">Don't have any account?</span>
<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>
</div> -->
</div>
<div class="panel-body">
<form class="form-login" action="{{ path('admin_lostPassword') }}" method="post" id="form_login">
{% for flashMessage in app.session.flashbag.get('notice') %}
<div class="alert alert-success">
{{ flashMessage|raw }}
</div>
{% endfor %}
{% for flashMessage in app.session.flashbag.get('error') %}
<div class="alert alert-danger">
{{ flashMessage|raw }}
</div>
{% endfor %}
<div class="alert alert-info">
<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>
</div>
<div class="seperator"></div>
<div class="form-group">
<label>Adresse e-mail</label>
<input type="email" placeholder="Adresse e-mail" class="form-control input-sm bounceIn animation-delay2" data-type="email" name="email" value="" data-required="true" >
</div>
<hr/>
<a class="btn btn-warning btn-sm bounceIn animation-delay5 pull-right" href="{{ path('admin_login') }}">Retour vers la page de connexion</a>
<a class="btn btn-success btn-sm bounceIn animation-delay5 pull-right" href="#" id="submit_btn"><i class="fa fa-repeat"></i> Valider</a>
</form>
</div>
</div><!-- /panel -->
</div><!-- /login-widget -->
{{ include("Admin/Default/footer.html.twig") }}
</div><!-- /login-wrapper -->
{% endblock %}
{% block footer_js %}
<script language="javascript" type="text/javascript" src="{{ asset('js/jquery-1.10.2.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ asset('bootstrap/js/bootstrap.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ asset('js/uncompressed/parsley.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ asset('js/modernizr.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ asset('js/jquery.popupoverlay.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ asset('js/jquery.slimscroll.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ asset('js/jquery.cookie.min.js') }}"></script>
<script language="javascript" type="text/javascript" src='{{ asset('js/pace.min.js') }}'></script>
<script language="javascript" type="text/javascript" src="{{ asset('js/endless/endless.js') }}"></script>
<script type="text/javascript">
$("input").keypress(function(event) {
if (event.which == 13) {
event.preventDefault();
$('#submit_btn').trigger('click');
}
});
$('#submit_btn').click(function(){
$('#form_login').submit();
});
$( '#form_login' ).parsley();
var form = $('#form_login');
form.submit(function(){
if(form.parsley('isValid') == false){
return false;
}else{
$('.pace').each(function(){
$(this).removeClass('pace-inactive').addClass('pace-active');
});
$('#overlay').fadeIn();
return true;
}
});
$('.loadPageContact').click(function(){
$('#mydModal').modal('show');
$('#mydModal .modal-content').html('<img src="{{ asset('img/ajax-loader.gif') }}" class="center-block" />');
$.ajax({
type: "POST",
url: '#',
success: function(html){
$('#mydModal').attr('class','modal fade page page-contact in');
$('#mydModal .modal-content').html(html);
}
});
});
$('.loadPageMentions').click(function(){
$('#mydModal').modal('show');
$('#mydModal .modal-content').html('<img src="{{ asset('img/ajax-loader.gif') }}" class="center-block" />');
$.ajax({
type: "POST",
url: '{{ path('admin_pageMentions') }}',
success: function(html){
$('#mydModal').attr('class','modal fade page page-mentions in');
$('#mydModal .modal-content').html(html);
}
});
});
</script>
{% endblock %}