{% extends 'base.html.twig' %}
{% block title %}{{ parent() }} - Connection{% endblock %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('css/login') }}
{% endblock %}
{% block body %}
<div class="h-100 row align-items-center justify-content-center">
<div class="w-md-50 border rounded bg-white" style="box-shadow: 0px 0px 14px 4px rgba(0,0,0,0.75);">
<div class="row justify-content-center m-3">
<span class="h5 m-0">Centre de Micropraxie</span>
</div>
<hr>
<div class="d-flex h-100 align-items-center">
<div class="d-none d-md-block ">
<img src="./images/Logo cabinet 1-1-2.jpg" alt="Pôle Médecines Douces" width="300px">
</div>
<div class="mx-4">
<form id="login-form" method="post">
<div class="form-group">
<p class="small text-center">
Saisissez vos identifiants pour vous connecter
</p>
<label for="inputEmail" class="text-muted small">Email</label>
{#
<input type="email" value="{{ last_username }}" name="email" id="inputEmail" class="form-control" required autofocus>
#}
<input type="email" value="" name="email" id="inputEmail" class="form-control" required autofocus>
</div>
<div class="form-group">
<label for="inputPassword" class="text-muted small">Mot de passe</label>
<input type="password" name="password" id="inputPassword" class="form-control" required>
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<div class="form-group text-center">
<button class="btn btn-success" type="submit">Se connecter</button>
</div>
</form>
</div>
</div>
<div class="row justify-content-between mx-3 mb-3">
<div class="">
<span id="login-message">
{% if error %}
<span class="text-danger small">Erreur de connexion</span>
{% endif %}
</span>
</div>
<button class="btn btn-sm btn-link text-decoration-none" id="btn-reset-pwd">Mot de passe oublié ?</button>
</div>
</div> {# /card #}
</div>
<div class="modal" id="modal-reset-pwd" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Réinitialiser mon mot de passe</h5>
</div>
<div class="modal-body">
<p class="small">Pour recevoir un nouveau mot de passe, saisissez votre adresse mail.</p>
<form id="reset-pwd-form" method="post">
<div class="form-group">
<div class="input-group mb-2 mr-sm-2">
<div class="input-group-prepend">
<div class="input-group-text"><i class="fas fa-envelope prefix grey-text"></i></div>
</div>
<input type="email" class="form-control" name="emailInput">
<input type="hidden" name="_csrf_reset_token" value="{{ csrf_token('reset-password') }}">
</div>
</div>
</form>
<div class="row justify-content-center">
<button class="btn btn-sm btn-outline-secondary mr-3" data-dismiss="modal">Annuler</button>
<button class="btn btn-sm btn-outline-primary" id="btn-reset-pwd-submit">Valider</button>
</div>
</div>
</div>
</div>
</div>
{% block javascripts %}
{{ encore_entry_script_tags('js/login') }}
{% endblock %}
{% endblock %}