diff --git a/assets/styles/app.css b/assets/styles/app.css index dd6181a..81c7fd2 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -1,3 +1,10 @@ body { - background-color: skyblue; + background-color: #31393C; } +.wrapper { + color: #D0DDD7; + margin: 1em auto; + max-width: 800px; + width: 95%; + font: 18px/1.5 sans-serif; +} \ No newline at end of file diff --git a/src/Controller/DashboardController.php b/src/Controller/DashboardController.php index 44dfedc..82fcfaa 100644 --- a/src/Controller/DashboardController.php +++ b/src/Controller/DashboardController.php @@ -6,13 +6,13 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; -#[Route('/dashboard', name: 'IndexController')] -class IndexController extends AbstractController +#[Route('/dashboard', name: 'DashboardController')] +class DashboardController extends AbstractController { #[Route('', name: '_index')] public function index(): Response { - return $this->render('index/index.html.twig'); + return $this->render('dashboard/dashboard.html.twig'); } } diff --git a/src/Entity/Category.php b/src/Entity/Category.php index b3d9bbc..93a06d7 100644 --- a/src/Entity/Category.php +++ b/src/Entity/Category.php @@ -1 +1,44 @@ id; + } + + public function setId(int $id): static + { + $this->id = $id; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(string $label): static + { + $this->label = $label; + + return $this; + } + +} +?> diff --git a/src/Entity/Employee.php b/src/Entity/Employee.php index 54a16ae..488f48e 100644 --- a/src/Entity/Employee.php +++ b/src/Entity/Employee.php @@ -2,10 +2,10 @@ namespace App\Entity; -use App\Repository\EmployeeRepository; + use Doctrine\ORM\Mapping as ORM; -#[ORM\Entity(repositoryClass: EmployeeRepository::class)] + class Employee { #[ORM\Id] diff --git a/src/Entity/Incident.php b/src/Entity/Incident.php index b3d9bbc..a02d272 100644 --- a/src/Entity/Incident.php +++ b/src/Entity/Incident.php @@ -1 +1,42 @@ id; + } + + public function setId(int $id): static + { + $this->id = $id; + + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setLabel(string $description): static + { + $this->description = $description; + + return $this; + } + +} +?> diff --git a/src/Entity/IncidentType.php b/src/Entity/IncidentType.php index b3d9bbc..08cf5a8 100644 --- a/src/Entity/IncidentType.php +++ b/src/Entity/IncidentType.php @@ -1 +1,44 @@ id; + } + + public function setId(int $id): static + { + $this->id = $id; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(string $label): static + { + $this->label = $label; + + return $this; + } + +} +?> diff --git a/src/Entity/Mission.php b/src/Entity/Mission.php index b3d9bbc..0b26d78 100644 --- a/src/Entity/Mission.php +++ b/src/Entity/Mission.php @@ -1 +1,47 @@ id; + } + + public function setId(int $id): static + { + $this->id = $id; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(string $label): static + { + $this->label = $label; + + return $this; + } + +} +?> diff --git a/src/Entity/Requirements.php b/src/Entity/Requirements.php index 0246e76..f2519f8 100644 --- a/src/Entity/Requirements.php +++ b/src/Entity/Requirements.php @@ -5,17 +5,16 @@ namespace App\Entity; use App\Repository\RequirementsRepository; use Doctrine\ORM\Mapping as ORM; -#[ORM\OneToMany(targetEntity: Mission::class, mappedBy: 'requirements')] -#[ORM\OneToMany(targetEntity: Skill::class, mappedBy: 'requirements')] + class Requirements { #[ORM\Id] - #[ORM\GeneratedValue] - #[ORM\Column] - private ?int $id = null; + #[ORM\OneToMany(targetEntity: Mission::class, mappedBy: 'requirements')] + #[ORM\JoinColumn(nullable: false)] + private ?Mission $mission = null; - public function getId(): ?int - { - return $this->id; - } + #[ORM\Id] + #[ORM\OneToMany(targetEntity: Skill::class, mappedBy: 'requirements')] + #[ORM\JoinColumn(nullable: false)] + private ?Skill $skill = null; } diff --git a/src/Entity/Ride.php b/src/Entity/Ride.php index b3d9bbc..9b003b8 100644 --- a/src/Entity/Ride.php +++ b/src/Entity/Ride.php @@ -1 +1,56 @@ id; + } + + public function setId(int $id): static + { + $this->id = $id; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(string $label): static + { + $this->label = $label; + + return $this; + } + + public function getCount(): ?int + { + return $this->count; + } + + public function setCount(int $count): static + { + $this->count = $count; + + return $this; + } +} diff --git a/src/Entity/Skill.php b/src/Entity/Skill.php index b3d9bbc..df0a435 100644 --- a/src/Entity/Skill.php +++ b/src/Entity/Skill.php @@ -1 +1,46 @@ id; + } + + public function setId(int $id): static + { + $this->id = $id; + + return $this; + } + + public function getLabel(): ?string + { + return $this->label; + } + + public function setLabel(string $label): static + { + $this->label = $label; + + return $this; + } + +}