{# templates/login/index.html.twig #}
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8"/>
<title>{% block title %}{% endblock %} | {{ clientName() }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- App favicon -->
<link rel="shortcut icon" href="{{ path('app_static_favicon') }}">
<!-- Bootstrap Css -->
<link href="/assets/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css"/>
<!-- Icons Css -->
<link href="/assets/css/icons.min.css" rel="stylesheet" type="text/css"/>
<!-- App Css-->
<link href="/assets/css/app.min.css" id="app-style" rel="stylesheet" type="text/css"/>
<!-- App Css-->
<link href="/assets/css/app.custom.css" rel="stylesheet" type="text/css"/>
<style>
body {
background-color: black !important;
}
.layer-video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: .7;
}
.layer-video video {
position: relative;
height: 120vh;
/*margin-left: -70%;*/
/*margin-top: -300px;*/
}
@media (max-width: 768px) {
.left-section {
display: none;
}
.right-section .auth-full-page-content {
justify-content: center;
}
}
</style>
</head>
<body class="auth-body-bg">
<div>
{% if "LOGIN_BACKGROUND_IMAGE"|param is null %}
<div class="layer-video">
<video loop muted autoplay>
<source src="/assets/videos/login.webm" type="video/webm">
</video>
</div>
{% else %}
<div class="layer-video" style="background: url('/static/bg-login.png'); background-size:cover;"></div>
{% endif %}
<div class="container-fluid p-0" style="height:100vh;">
<div class="row g-0" style="height: 100vh; margin:0!important;">
<div class="col-md-6 left-section">
<div class="auth-full-bg pt-lg-5 p-4" style="background:transparent;">
<div class="w-100">
<div class="d-flex h-100 flex-column">
<div class="p-4 mt-auto">
<div class="row justify-content-center">
<div class="col-lg-10">
{% if "LOGIN_ENABLE_CITATION"|param|default(1) == 1 %}
<div class="text-center" style="background:rgba(0,0,0,0.6); border-radius: 10px 10px 3px 10px; padding: 10px 15px;">
<div dir="ltr">
<div class="owl-carousel owl-theme auth-review-carousel" id="auth-review-carousel">
<div class="item">
<div class="py-3" style="padding-bottom: 7px!important; padding-top: 0px!important;">
<p class="font-size-16 mb-4 text-white" style="margin-bottom: 0!important;">
{{ quotationDay().quotation }}
</p>
<p class="font-size-16 mb-4 text-center" style="margin-bottom: 0!important; color:#8b8b8b!important; font-size:1em!important; font-style: italic">
{{ quotationDay().author ~ (quotationDay().date is not empty ? " " ~ quotationDay().date : "") }}
</p>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- end col -->
<div class="col-md-6 right-section" style="background: rgba(255,255,255,0.9);">
<div class="auth-full-page-content p-md-5 p-4">
<div class="w-100">
<div class="d-flex flex-column h-100">
<div class="dropdown d-inline-block" style="position:absolute; top: 0; right: 0;">
<button type="button" class="btn header-item waves-effect" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="height: 35px;">
<img id="header-lang-img" src="/assets/images/flags/{{ localeLangage }}.jpg" height="16">
</button>
<div class="dropdown-menu dropdown-menu-end">
<!-- item-->
<a href="javascript:void(0);" class="dropdown-item notify-item language lang-selector" data-lang="fr" style="cursor: pointer;">
<img src="/assets/images/flags/fr.jpg" height="12"> <span class="align-middle">Français</span>
</a>
<!-- item-->
{# <a href="javascript:void(0);" class="dropdown-item notify-item language lang-selector" data-lang="en" style="cursor: pointer;"> #}
{# <img src="/assets/images/flags/en.jpg" height="12"> <span class="align-middle">English</span> #}
{# </a> #}
</div>
</div>
<div class="mb-4 mb-md-5">
<a href="#" class="d-block auth-logo text-center">
<img src="{{ path('app_static_logo') }}" alt="" height="80" class="auth-logo-dark" style="margin:auto;">
</a>
</div>
<div class="my-auto" style="max-width: 400px;">
{% block content %}
<div>
<h5 class="text-primary">{{ "app_login.welcome"|trans({}, "authenticator") }}</h5>
<p class="text-muted">{{ "app_login.connect_to_access"|trans({}, "authenticator") }}</p>
</div>
<div class="mt-4">
<form action="{{ path('login') }}" method="POST">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<div class="mb-3">
<label for="_username" class="form-label">{{ "app_login.username"|trans({}, "authenticator") }}</label>
<input type="email" class="form-control" id="_username" name="_username" placeholder="{{ "app_login.username"|trans({}, "authenticator") }}" required>
</div>
<div class="mb-3">
<div class="float-end">
<a href="{{ path("forgot_password") }}" tabindex="-1" class="text-muted">{{ "app_login.forgot_password"|trans({}, "authenticator") }}</a>
</div>
<label class="form-label">{{ "app_login.password"|trans({}, "authenticator") }}</label>
<div class="input-group auth-pass-inputgroup">
<input type="password" name="_password" class="form-control" placeholder="{{ "app_login.password"|trans({}, "authenticator") }}" aria-label="Password" aria-describedby="password-addon">
<button class="btn btn-light " type="button" id="password-addon" style="border: #ced4da solid 1px"><i class="mdi mdi-eye-outline"></i></button>
</div>
</div>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<div class="mt-3 d-grid">
<button class="btn btn-primary waves-effect " type="submit">{{ "app_login.login"|trans({}, "authenticator") }}</button>
</div>
</form>
</div>
{% endblock %}
</div>
<div class="mt-4 mt-md-5 text-center">
<p class="mb-0"> ©{{ "now"|date("Y") }} Club la Pelle- Développé par AdherIA</p>
</div>
</div>
</div>
</div>
</div>
<!-- end col -->
</div>
<!-- end row -->
</div>
<!-- end container-fluid -->
</div>
<!-- JAVASCRIPT -->
<script src="/assets/libs/jquery/dist/jquery.min.js"></script>
<script src="/assets/libs/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="/assets/libs/metismenu/dist/metisMenu.min.js"></script>
<script src="/assets/libs/simplebar/dist/simplebar.min.js"></script>
<script src="/assets/libs/node-waves/dist/waves.min.js"></script>
<!-- App js -->
<script src="/assets/js/app.js"></script>
<script type="text/javascript">
$('input[name="_username"]').focus();
// Lang selector.
$('a.lang-selector[data-lang]')
.on('click', function () {
var lang = $(this).attr('data-lang');
fetch("/lang/set/" + lang)
.then((response) => {
return response.json();
})
.then((response) => {
if (true === response) {
window.location.reload();
}
});
})
.css("cursor", "pointer");
</script>
</body>
</html>