Fonctionnalité des véhicules

This commit is contained in:
Yacha-Shan 2025-04-18 15:30:41 +02:00
parent d1df840ae2
commit fc8387808f
3 changed files with 4 additions and 3 deletions

4
.idea/dataSources.xml generated
View File

@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="HegreEtConfort@localhost" uuid="21423ae4-3232-4641-affb-06399f70655a">
<data-source source="LOCAL" name="hegreetconfort@localhost" uuid="21423ae4-3232-4641-affb-06399f70655a">
<driver-ref>postgresql</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.postgresql.Driver</jdbc-driver>
<jdbc-url>jdbc:postgresql://localhost:5433/HegreEtConfort</jdbc-url>
<jdbc-url>jdbc:postgresql://localhost:5432/hegreetconfort</jdbc-url>
<working-dir>$ProjectFileDir$</working-dir>
</data-source>
</component>

View File

@ -17,7 +17,7 @@ final class VehicleController extends AbstractController
#[Route(name: 'app_vehicle_index', methods: ['GET'])]
public function index(VehicleRepository $vehicleRepository): Response
{
return $this->render('vehicle/admin.html.twig', [
return $this->render('vehicle/index.html.twig', [
'vehicles' => $vehicleRepository->findAll(),
]);
}

View File

@ -15,6 +15,7 @@ class VehicleType extends AbstractType
$builder
->add('LicensePlate', TextType::class)
->add('Brand', TextType::class)
->add('Model', TextType::class)
;
}