This commit is contained in:
Maxiser 2024-12-05 16:37:06 +01:00
commit 65cbebd40a
7 changed files with 83 additions and 19 deletions

View File

@ -3,7 +3,6 @@
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" packagePrefix="App\" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" packagePrefix="App\Tests\" />
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/cache" />

View File

@ -0,0 +1,36 @@
body {
background: #A6CD9E !important;
}
.background {
background-color: #7D9599;
position: absolute;
width: 100%;
height: 80%;
}
.background-intervention {
background-color: #A0C2C8;
position: absolute;
box-shadow: 0 0 30px 1px black;
border-radius: 5%;
margin: 2% 0 0 20%;
width: 60%;
height: 70%;
}
.logoCalendar {
position: absolute;
margin: 1% 0 0 5%;
width: 5%;
}
h1 {
position: absolute;
margin: 5% 0 0 11%;
}
.from {
position: absolute;
margin: 15% 15% 15% 15%;
}

View File

@ -1,5 +1,5 @@
body {
background: url("../image/fond.png") center center / cover no-repeat;
background: url("../image/fond.png") center center / cover no-repeat !important;
}
.logo {
@ -28,14 +28,14 @@ body {
margin: 27% 0 0 36%;
height: 10%;
}
.profile {
#profile {
position: absolute;
border-radius: 2%;
margin: 20% 0 0 42%;
width: 22%;
height: 5%;
}
.password {
#password {
position: absolute;
border-radius: 2%;
margin: 27% 0 0 42%;

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -18,7 +18,7 @@ class AuthenticationController extends AbstractController
// last username entered by the user
$lastUsername = $authenticationUtils->getLastUsername();
return $this->render('authentication/index.html.twig', [
return $this->render('login/index.html.twig', [
'last_username' => $lastUsername,
'error' => $error,
]);

View File

@ -1,10 +1,26 @@
{# templates/user/add.html.twig #}
{% extends 'base.html.twig' %}
<!DOCTYPE html>
<html lang="fr, en">
<head>
<meta charset="UTF-8">
<title>Créer Une Intervention</title>
<link href="{{ asset('styles/css/intervention.css') }}" rel='stylesheet'>
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
{% block title %}Ajouter une intervention {% endblock %}
<meta name="viewport" content="width=device-width, initial-scale=1">
{% block body %}
<h1>Ajouter une intervention</h1>
{% block stylesheets %}
{% endblock %}
</head>
<body>
<div class="background"></div>
<img class="logoCalendar" src="{{ asset('styles/image/calendar.png') }}" alt="Logo Calendrier">
<h1>Créer Une Intervention</h1>
{{ form(form) }}
{% endblock %}
<div class="background-intervention">
<div class="from"> {{ form(form) }} </div>
</div>
</body>
</html>

View File

@ -11,7 +11,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
{% block stylesheets %}
{% endblock %}
</head>
@ -25,12 +24,26 @@
<img class="logoProfile" src="{{ asset('styles/image/profile.png') }}" alt="Logo Profil">
<img class="logoPassword" src="{{ asset('styles/image/password.png') }}" alt="Logo Password">
<label>
<input class="profile" type="email" placeholder="Adresse mail">
<input class="password" type="password" placeholder="Mot de passe">
<input type="checkbox" id="remember">
<label class="remember" for="remember">Se souvenir de moi</label>
</label>
<form method="post">
{% 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é en tant que {{ app.user.userIdentifier }}, <a href="{{ path('app_logout') }}">Déconnexion</a>
</div>
{% endif %}
<label>
<input id="profile" type="email" placeholder="Adresse mail" value="{{ last_username }}" name="_username" class="form-control" autocomplete="email" required autofocus>
<input id="password" type="password" placeholder="Mot de passe" name="_password" class="form-control" autocomplete="current-password" required>
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<input type="checkbox" name="remember" id="remember">
<label class="remember" for="remember">Se souvenir de moi</label>
</label>
</form>
<button class="login"> Connexion </button>