first commit
This commit is contained in:
parent
17b5c60f26
commit
340bab7c53
18
src/Controller/DashboardController.php
Normal file
18
src/Controller/DashboardController.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Controller;
|
||||||
|
|
||||||
|
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('', name: '_index')]
|
||||||
|
public function index(): Response
|
||||||
|
{
|
||||||
|
|
||||||
|
return $this->render('index/index.html.twig');
|
||||||
|
}
|
||||||
|
}
|
1
src/Entity/Category.php
Normal file
1
src/Entity/Category.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
57
src/Entity/Employee.php
Normal file
57
src/Entity/Employee.php
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Entity;
|
||||||
|
|
||||||
|
use App\Repository\EmployeeRepository;
|
||||||
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
|
|
||||||
|
#[ORM\Entity(repositoryClass: EmployeeRepository::class)]
|
||||||
|
class Employee
|
||||||
|
{
|
||||||
|
#[ORM\Id]
|
||||||
|
#[ORM\GeneratedValue]
|
||||||
|
#[ORM\Column]
|
||||||
|
private ?int $id = null;
|
||||||
|
|
||||||
|
#[ORM\Column(length: 30)]
|
||||||
|
private ?string $firstName = null;
|
||||||
|
|
||||||
|
#[ORM\Column(length: 30)]
|
||||||
|
private ?string $lastName = null;
|
||||||
|
|
||||||
|
public function getId(): ?int
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setId(int $id): static
|
||||||
|
{
|
||||||
|
$this->id = $id;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFirstName(): ?string
|
||||||
|
{
|
||||||
|
return $this->firstName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setFirstName(string $firstName): static
|
||||||
|
{
|
||||||
|
$this->firstName = $firstName;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getLastName(): ?string
|
||||||
|
{
|
||||||
|
return $this->lastName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setLastName(string $lastName): static
|
||||||
|
{
|
||||||
|
$this->lastName = $lastName;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
}
|
1
src/Entity/Incident.php
Normal file
1
src/Entity/Incident.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
1
src/Entity/IncidentType.php
Normal file
1
src/Entity/IncidentType.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
1
src/Entity/Mission.php
Normal file
1
src/Entity/Mission.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
21
src/Entity/Requirements.php
Normal file
21
src/Entity/Requirements.php
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
public function getId(): ?int
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
}
|
1
src/Entity/Ride.php
Normal file
1
src/Entity/Ride.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
1
src/Entity/Skill.php
Normal file
1
src/Entity/Skill.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php
|
12
templates/dashboard/dashboard.html.twig
Normal file
12
templates/dashboard/dashboard.html.twig
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block title %}Dashboard{% endblock %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
<div class="wrapper">
|
||||||
|
<h1>Welcome, *Dashboard User* !</h1>
|
||||||
|
|
||||||
|
This is a placeholder.
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user