{% extends 'base.html.twig' %}
{% block title %}Les trésors de Luna{% endblock %}
{% block javascripts %}
<script type="module">
import FormValidation from '{{asset("js/classes/FormValidation.js")}}'
window.addEventListener('load', () => {
const registrationForm = document.getElementById('registration_form')
const excludedInputsId = ['registration_form_agreeTerms', 'registration_form__token']
const createAccountButton = document.getElementById('create-user-acount-button')
const formValidation = new FormValidation(registrationForm, createAccountButton, excludedInputsId)
})
</script>
{% endblock javascripts %}
{% block body %}
<body>
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<defs>
<symbol xmlns="http://www.w3.org/2000/svg" id="link" viewBox="0 0 24 24">
<path fill="currentColor"
d="M12 19a1 1 0 1 0-1-1a1 1 0 0 0 1 1Zm5 0a1 1 0 1 0-1-1a1 1 0 0 0 1 1Zm0-4a1 1 0 1 0-1-1a1 1 0 0 0 1 1Zm-5 0a1 1 0 1 0-1-1a1 1 0 0 0 1 1Zm7-12h-1V2a1 1 0 0 0-2 0v1H8V2a1 1 0 0 0-2 0v1H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3Zm1 17a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-9h16Zm0-11H4V6a1 1 0 0 1 1-1h1v1a1 1 0 0 0 2 0V5h8v1a1 1 0 0 0 2 0V5h1a1 1 0 0 1 1 1ZM7 15a1 1 0 1 0-1-1a1 1 0 0 0 1 1Zm0 4a1 1 0 1 0-1-1a1 1 0 0 0 1 1Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="arrow-right" viewBox="0 0 24 24">
<path fill="currentColor"
d="M17.92 11.62a1 1 0 0 0-.21-.33l-5-5a1 1 0 0 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l5-5a1 1 0 0 0 .21-.33a1 1 0 0 0 0-.76Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="category" viewBox="0 0 24 24">
<path fill="currentColor"
d="M19 5.5h-6.28l-.32-1a3 3 0 0 0-2.84-2H5a3 3 0 0 0-3 3v13a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-10a3 3 0 0 0-3-3Zm1 13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-13a1 1 0 0 1 1-1h4.56a1 1 0 0 1 .95.68l.54 1.64a1 1 0 0 0 .95.68h7a1 1 0 0 1 1 1Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="calendar" viewBox="0 0 24 24">
<path fill="currentColor"
d="M19 4h-2V3a1 1 0 0 0-2 0v1H9V3a1 1 0 0 0-2 0v1H5a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3Zm1 15a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-7h16Zm0-9H4V7a1 1 0 0 1 1-1h2v1a1 1 0 0 0 2 0V6h6v1a1 1 0 0 0 2 0V6h2a1 1 0 0 1 1 1Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="heart" viewBox="0 0 24 24">
<path fill="currentColor"
d="M20.16 4.61A6.27 6.27 0 0 0 12 4a6.27 6.27 0 0 0-8.16 9.48l7.45 7.45a1 1 0 0 0 1.42 0l7.45-7.45a6.27 6.27 0 0 0 0-8.87Zm-1.41 7.46L12 18.81l-6.75-6.74a4.28 4.28 0 0 1 3-7.3a4.25 4.25 0 0 1 3 1.25a1 1 0 0 0 1.42 0a4.27 4.27 0 0 1 6 6.05Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="plus" viewBox="0 0 24 24">
<path fill="currentColor"
d="M19 11h-6V5a1 1 0 0 0-2 0v6H5a1 1 0 0 0 0 2h6v6a1 1 0 0 0 2 0v-6h6a1 1 0 0 0 0-2Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="minus" viewBox="0 0 24 24">
<path fill="currentColor" d="M19 11H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="cart" viewBox="0 0 24 24">
<path fill="currentColor"
d="M8.5 19a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 8.5 19ZM19 16H7a1 1 0 0 1 0-2h8.491a3.013 3.013 0 0 0 2.885-2.176l1.585-5.55A1 1 0 0 0 19 5H6.74a3.007 3.007 0 0 0-2.82-2H3a1 1 0 0 0 0 2h.921a1.005 1.005 0 0 1 .962.725l.155.545v.005l1.641 5.742A3 3 0 0 0 7 18h12a1 1 0 0 0 0-2Zm-1.326-9l-1.22 4.274a1.005 1.005 0 0 1-.963.726H8.754l-.255-.892L7.326 7ZM16.5 19a1.5 1.5 0 1 0 1.5 1.5a1.5 1.5 0 0 0-1.5-1.5Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="check" viewBox="0 0 24 24">
<path fill="currentColor"
d="M18.71 7.21a1 1 0 0 0-1.42 0l-7.45 7.46l-3.13-3.14A1 1 0 1 0 5.29 13l3.84 3.84a1 1 0 0 0 1.42 0l8.16-8.16a1 1 0 0 0 0-1.47Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="trash" viewBox="0 0 24 24">
<path fill="currentColor"
d="M10 18a1 1 0 0 0 1-1v-6a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1ZM20 6h-4V5a3 3 0 0 0-3-3h-2a3 3 0 0 0-3 3v1H4a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2ZM10 5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v1h-4Zm7 14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8h10Zm-3-1a1 1 0 0 0 1-1v-6a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="star-outline" viewBox="0 0 15 15">
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
d="M7.5 9.804L5.337 11l.413-2.533L4 6.674l2.418-.37L7.5 4l1.082 2.304l2.418.37l-1.75 1.793L9.663 11L7.5 9.804Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="star-solid" viewBox="0 0 15 15">
<path fill="currentColor"
d="M7.953 3.788a.5.5 0 0 0-.906 0L6.08 5.85l-2.154.33a.5.5 0 0 0-.283.843l1.574 1.613l-.373 2.284a.5.5 0 0 0 .736.518l1.92-1.063l1.921 1.063a.5.5 0 0 0 .736-.519l-.373-2.283l1.574-1.613a.5.5 0 0 0-.283-.844L8.921 5.85l-.968-2.062Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="search" viewBox="0 0 24 24">
<path fill="currentColor"
d="M21.71 20.29L18 16.61A9 9 0 1 0 16.61 18l3.68 3.68a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.39ZM11 18a7 7 0 1 1 7-7a7 7 0 0 1-7 7Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="user" viewBox="0 0 24 24">
<path fill="currentColor"
d="M15.71 12.71a6 6 0 1 0-7.42 0a10 10 0 0 0-6.22 8.18a1 1 0 0 0 2 .22a8 8 0 0 1 15.9 0a1 1 0 0 0 1 .89h.11a1 1 0 0 0 .88-1.1a10 10 0 0 0-6.25-8.19ZM12 12a4 4 0 1 1 4-4a4 4 0 0 1-4 4Z" />
</symbol>
<symbol xmlns="http://www.w3.org/2000/svg" id="close" viewBox="0 0 15 15">
<path fill="currentColor"
d="M7.953 3.788a.5.5 0 0 0-.906 0L6.08 5.85l-2.154.33a.5.5 0 0 0-.283.843l1.574 1.613l-.373 2.284a.5.5 0 0 0 .736.518l1.92-1.063l1.921 1.063a.5.5 0 0 0 .736-.519l-.373-2.283l1.574-1.613a.5.5 0 0 0-.283-.844L8.921 5.85l-.968-2.062Z" />
</symbol>
</defs>
</svg>
<div class="preloader-wrapper">
<div class="preloader">
</div>
</div>
<div class="offcanvas offcanvas-end" data-bs-scroll="true" tabindex="-1" id="offcanvasCart"
aria-labelledby="My Cart">
<div class="offcanvas-header justify-content-center">
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<div class="order-md-last">
<h4 class="d-flex justify-content-between align-items-center mb-3">
<span class="text-primary">Your cart</span>
<span class="badge bg-primary rounded-circle pt-2">3</span>
</h4>
<ul class="list-group mb-3">
<li class="list-group-item d-flex justify-content-between lh-sm">
<div>
<h6 class="my-0">Grey Hoodie</h6>
<small class="text-body-secondary">Brief description</small>
</div>
<span class="text-body-secondary">$12</span>
</li>
<li class="list-group-item d-flex justify-content-between lh-sm">
<div>
<h6 class="my-0">Dog Food</h6>
<small class="text-body-secondary">Brief description</small>
</div>
<span class="text-body-secondary">$8</span>
</li>
<li class="list-group-item d-flex justify-content-between lh-sm">
<div>
<h6 class="my-0">Soft Toy</h6>
<small class="text-body-secondary">Brief description</small>
</div>
<span class="text-body-secondary">$5</span>
</li>
<li class="list-group-item d-flex justify-content-between">
<span class="fw-bold">Total (USD)</span>
<strong>$20</strong>
</li>
</ul>
<button class="w-100 btn btn-primary btn-lg" type="submit">Continue to checkout</button>
</div>
</div>
</div>
<div class="offcanvas offcanvas-end" data-bs-scroll="true" tabindex="-1" id="offcanvasSearch"
aria-labelledby="Search">
<div class="offcanvas-header justify-content-center">
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<div class="order-md-last">
<h4 class="text-primary text-uppercase mb-3">
Search
</h4>
{#
<div class="search-bar border rounded-2 border-dark-subtle">
<form id="search-form" class="text-center d-flex align-items-center" action="" method="">
<input type="text" class="form-control border-0 bg-transparent" placeholder="Search Here" />
<iconify-icon icon="tabler:search" class="fs-4 me-3"></iconify-icon>
</form>
</div>
#}
</div>
</div>
</div>
<section id="banner" class="py-3" style="background: #F9F3EC;">
<div class="container">
<div class="hero-content py-5 my-3">
<h2 class="display-1 mt-3 mb-0">Votre compte</h2>
<nav class="breadcrumb">
<a class="breadcrumb-item nav-link" href="{{path('app_home')}}">Accueil</a>
<span class="breadcrumb-item active" aria-current="page">Compte utilisateur</span>
</nav>
</div>
</div>
</section>
{% for flash_error in app.flashes('verify_email_error') %}
<div class="alert alert-danger" role="alert">{{ flash_error }}</div>
{% endfor %}
<section class="login-tabs padding-large">
<div class="container my-5 py-5">
<div class="row">
<div class="tabs-listing">
<nav>
<div class="nav nav-tabs d-flex justify-content-center border-dark-subtle mb-3" id="nav-tab"
role="tablist">
<button
class="nav-link mx-3 fs-3 border-bottom border-dark-subtle border-0 text-uppercase active"
id="nav-sign-in-tab" data-bs-toggle="tab" data-bs-target="#nav-sign-in" type="button"
role="tab" aria-controls="nav-sign-in" aria-selected="true">Connexion</button>
<button class="nav-link mx-3 fs-3 border-bottom border-dark-subtle border-0 text-uppercase"
id="nav-register-tab" data-bs-toggle="tab" data-bs-target="#nav-register" type="button"
role="tab" aria-controls="nav-register" aria-selected="false">Créer un compte</button>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade active show" id="nav-sign-in" role="tabpanel"
aria-labelledby="nav-sign-in-tab">
<div class="col-lg-8 offset-lg-2 mt-5">
{#
<p class="mb-0">Log-In With Social</p>
<hr class="my-1">
#}
<div class="social-wrapper row mt-4 mb-4">
<div class="d-grid col-md-6 my-2">
<div id="g_id_onload"
data-client_id="221318372673-1p9ujk71bfmi1t4a8n5n38c6g8qvs1b4.apps.googleusercontent.com"
data-context="signin"
data-ux_mode="popup"
data-login_uri="https://lestresorsdeluna.fr/connect/google/callback"
data-auto_prompt="false">
</div>
<div class="g_id_signin"
data-type="standard"
data-shape="rectangular"
data-theme="outline"
data-text="signin_with"
data-size="large"
data-logo_alignment="left">
</div>
</div>
{#
<div class="d-grid col-md-6 my-2">
<a href="#" class="btn btn-outline-dark btn-lg text-uppercase fs-6 rounded-1 ">
<div class="d-flex flex-wrap justify-content-center">
<iconify-icon icon="ion:logo-facebook"
class="signup-social-icon me-2"></iconify-icon>
<p class="mb-0">Facebook</p>
</div>
</a>
</div>
#}
</div>
<p class="mb-0">Connexion par Email</p>
<hr class="my-1">
<form id="login_form" action="{{ path('app_login') }}" data-link="{{path('app_login')}}" method="post" class="form-group flex-wrap ">
{% if error %}
<div class="alert alert-danger">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% if app.user %}
<div class="mb-3">
Vous êtes connecté à {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Logout</a>
</div>
{% endif %}
<div class="form-input col-lg-12 my-4">
<input type="email" value="{{ last_username }}" name="_username" id="username" class="form-control mb-3 p-4" placeholder="Email" autocomplete="email" required autofocus>
<input type="password" name="_password" id="password" class="form-control mb-3 p-4" placeholder="Mot de passe" autocomplete="current-password" aria-describedby="passwordHelpBlock" required>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<label class="py-3 d-flex flex-wrap justify-content-between">
<div>
<input type="checkbox" name="_remember_me" class="d-inline">
<span class="label-body ">Se rappeler de moi</span>
</div>
<div id="passwordHelpBlock" class="form-text ">
<a href="#" class="text-primary fw-bold"> Mot de passe oublié ?</a>
</div>
</label>
<div class="d-grid my-3">
<button type="submit" href="#" class="btn btn-dark btn-lg rounded-1">Se connecter</button>
</div>
</div>
</form>
</div>
</div>
<div class="tab-pane fade" id="nav-register" role="tabpanel" aria-labelledby="nav-register-tab">
<div class="col-lg-8 offset-lg-2 mt-5">
{{form_start(registrationForm)}}
<div class="form-input col-lg-12 my-4">
<label style="color: red;" for="registration_form_surname"></label>
{{form_widget(registrationForm.surname)}}
<label style="color: red;" for="registration_form_firstname"></label>
{{form_widget(registrationForm.firstname)}}
<label style="color: red;" for="registration_form_phone"></label>
{{form_widget(registrationForm.phone)}}
<label style="color: red;" for="registration_form_adress"></label>
{{form_widget(registrationForm.adress)}}
<label style="color: red;" for="registration_form_additionalAdressInformation"></label>
{{form_widget(registrationForm.additionalAdressInformation)}}
<label style="color: red;" for="registration_form_city"></label>
{{form_widget(registrationForm.city)}}
<label style="color: red;" for="registration_form_zipcode"></label>
{{form_widget(registrationForm.zipcode)}}
<label style="color: red;" for="registration_form_email"></label>
{{form_widget(registrationForm.email)}}
<div class="errors" style="color: red;">
{{ form_errors(registrationForm.plainPassword) }}
</div>
<label style="color: red;" for="registration_form_plainPassword"></label>
{{form_widget(registrationForm.plainPassword)}}
<label id="repeated-pass-label" style="color: red;" for="inputPassword2"></label>
<input type="password" id="inputPassword2" placeholder="Retapez votre mot de passe"
class="form-control mb-3 p-4 formValidationCode" aria-describedby="passwordHelpBlock" required>
<label class="py-3 d-flex flex-wrap justify-content-between">
<div>
{{form_widget(registrationForm.agreeTerms)}}
{{form_label(registrationForm.agreeTerms)}} <a style="font-size: 1rem; color: black; font-weight: bold;" href="{{path('cgv')}}" target="_blank">Lire les CGV</a>
</div>
</label>
<div class="d-grid my-3">
<button id="create-user-acount-button" type="submit" class="btn btn-dark btn-lg rounded-1">Créer le compte</a>
</div>
</div>
{{form_end(registrationForm)}}
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<script src="{{asset('js/login.js')}}"></script>
</body>
{% endblock %}