2024-11-20 17:09:09 +01:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<form method="post">
|
2024-11-22 08:47:33 +01:00
|
|
|
<img src="{{asset("/medias/logo/logo.png")}}" style="margin: 15px auto 15px auto; width:100px; display:block;">
|
|
|
|
<center style="font-size:200%;margin-bottom:30px;">{{appName}}</center>
|
|
|
|
<div class="card card-body m-auto" style="width:300px">
|
|
|
|
{% if error %}
|
|
|
|
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if app.user %}
|
|
|
|
<div class="mb-3">
|
|
|
|
Vous êtes déjà connecté avec le login {{ app.user.userIdentifier }} = <a href="{{ path('app_logout') }}">Logout</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="username">Login</label>
|
|
|
|
<input class="form-control" type="text" value="{{ last_username }}" name="_username" id="username" class="form-control" autocomplete="username" required autofocus>
|
2024-11-20 17:09:09 +01:00
|
|
|
</div>
|
|
|
|
|
2024-11-22 08:47:33 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="password">Password</label>
|
|
|
|
<input class="form-control" type="password" name="_password" id="password" class="form-control" autocomplete="current-password" required>
|
|
|
|
</div>
|
2024-11-20 17:09:09 +01:00
|
|
|
|
2024-11-22 08:47:33 +01:00
|
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
|
2024-11-20 17:09:09 +01:00
|
|
|
|
2024-11-22 08:47:33 +01:00
|
|
|
<button class="btn btn-lg btn-primary" type="submit">
|
|
|
|
Valider
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|
2024-11-20 17:09:09 +01:00
|
|
|
|
2024-11-22 08:47:33 +01:00
|
|
|
{% block localscript %}
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
$("#password").focus();
|
|
|
|
console.log('DOM ready');
|
|
|
|
console.log($); // Vérifiez ici que $ est bien défini
|
|
|
|
});
|
2024-11-20 17:09:09 +01:00
|
|
|
|
2024-11-22 08:47:33 +01:00
|
|
|
</script>
|
2024-11-20 17:09:09 +01:00
|
|
|
{% endblock %}
|