Compare commits

..

2 Commits

9 changed files with 21 additions and 19 deletions

View File

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

View File

@ -17,20 +17,17 @@ class CalendrierController extends AbstractController
]); ]);
} }
#[Route('/secretaire', name: 'app_calendrier_indexSecretaire')] #[Route('/calendrier/secretaire', name: 'calendrier_index_secretaire')]
public function indexSecretaire(): Response public function indexSecretaire(): Response
{ {
return $this->render('calendrier/indexSecretaire.html.twig', [ return $this->render('calendrier/indexSecretaire.html.twig');
'controller_name' => 'CalendrierController',
]);
} }
#[Route('/chauffagiste', name: 'app_calendrier_indexChauffagiste')] #[Route('/calendrier/chauffagiste', name: 'calendrier_index_chauffagiste')]
public function indexChauffagiste(): Response public function indexChauffagiste(): Response
{ {
return $this->render('calendrier/indexChauffagiste.html.twig', [ return $this->render('calendrier/indexChauffagiste.html.twig');
'controller_name' => 'CalendrierController', }
]); }
// créer intervention : secretaire + admin // créer intervention : secretaire + admin
// créer un nouveau rdv // créer un nouveau rdv

View File

@ -17,7 +17,7 @@ final class FaultController extends AbstractController
#[Route(name: 'app_fault_index', methods: ['GET'])] #[Route(name: 'app_fault_index', methods: ['GET'])]
public function index(FaultRepository $faultRepository): Response public function index(FaultRepository $faultRepository): Response
{ {
return $this->render('fault/admin.html.twig', [ return $this->render('fault/index.html.twig', [
'faults' => $faultRepository->findAll(), 'faults' => $faultRepository->findAll(),
]); ]);
} }

View File

@ -17,7 +17,7 @@ final class StockController extends AbstractController
#[Route(name: 'app_stock_index', methods: ['GET'])] #[Route(name: 'app_stock_index', methods: ['GET'])]
public function index(StockRepository $stockRepository): Response public function index(StockRepository $stockRepository): Response
{ {
return $this->render('stock/admin.html.twig', [ return $this->render('stock/index.html.twig', [
'stocks' => $stockRepository->findAll(), 'stocks' => $stockRepository->findAll(),
]); ]);
} }

View File

@ -23,21 +23,22 @@
<li><a href="{{ path('app_calendrier_index') }}">Tous les plannings</a></li> <li><a href="{{ path('app_calendrier_index') }}">Tous les plannings</a></li>
<li><a href="{{ path('app_stock_index') }}">Gérer les stocks</a></li> <li><a href="{{ path('app_stock_index') }}">Gérer les stocks</a></li>
<li><a href="{{ path('app_vehicle_index') }}">Gérer les véhicules</a></li> <li><a href="{{ path('app_vehicle_index') }}">Gérer les véhicules</a></li>
<li><a href="{{ path('app_fault_index') }}">Test des fault !</a></li>
{% endif %} {% endif %}
{% if is_granted('ROLE_SECRETAIRE') %} {% if is_granted('ROLE_SECRETAIRE') %}
<li><a href="{{ path('secretaire_dashboard') }}">Dashboard Secrétaire</a></li> <li><a href="{{ path('secretaire_dashboard') }}">Dashboard Secrétaire</a></li>
<li><a href="{{ path('app_user_index') }}">Créer un chauffagiste</a></li> <li><a href="{{ path('user_new') }}">Créer un chauffagiste</a></li>
<li><a href="{{ path('app_calendrier_indexSecretaire') }}">Plannings chauffagistes</a></li> <li><a href="{{ path('calendrier_index_secretaire') }}">Plannings chauffagistes</a></li>
<li><a href="{{ path('app_stock_index') }}">Gérer les stocks</a></li> <li><a href="{{ path('stock_index') }}">Gérer les stocks</a></li>
<li><a href="{{ path('app_vehicle_index') }}">Gérer les véhicules</a></li> <li><a href="{{ path('vehicle_index') }}">Gérer les véhicules</a></li>
{% endif %} {% endif %}
{% if is_granted('ROLE_CHAUFFAGISTE') %} {% if is_granted('ROLE_CHAUFFAGISTE') %}
<li><a href="{{ path('chauffagiste_dashboard') }}">Dashboard Chauffagiste</a></li> <li><a href="{{ path('chauffagiste_dashboard') }}">Dashboard Chauffagiste</a></li>
<li><a href="{{ path('app_calendrier_indexChauffagiste') }}">Mon planning</a></li> <li><a href="{{ path('calendrier_index_chauffagiste') }}">Mon planning</a></li>
<li><a href="{{ path('app_intervention_index') }}">Mes interventions</a></li> <li><a href="{{ path('intervention_index') }}">Mes interventions</a></li>
<li><a href="{{ path('app_stock_index') }}">Pièces détachées</a></li> <li><a href="{{ path('stock_index') }}">Pièces détachées</a></li>
{% endif %} {% endif %}
<li><a href="{{ path('app_logout') }}">Déconnexion</a></li> <li><a href="{{ path('app_logout') }}">Déconnexion</a></li>

View File

@ -17,7 +17,9 @@
<div class="sidebar-button"> <div class="sidebar-button">
<img class="logoEmail" src="{{ asset('styles/image/3.png') }}"> <img class="logoEmail" src="{{ asset('styles/image/3.png') }}">
</div> </div>
<span>Create Intervention</span> <a href="{{ path('app_intervention_new') }}">
<button>Create Intervention</button>
</a>
<div class="sidebar-button"> <div class="sidebar-button">
<img class="logoEmail" src="{{ asset('styles/image/4.png') }}"> <img class="logoEmail" src="{{ asset('styles/image/4.png') }}">
</div> </div>

View File

@ -18,6 +18,7 @@
<tr> <tr>
<td>{{ fault.id }}</td> <td>{{ fault.id }}</td>
<td>{{ fault.Wording }}</td> <td>{{ fault.Wording }}</td>
<td>{{ fault.actions }}</td>
<td> <td>
<a href="{{ path('app_fault_show', {'id': fault.id}) }}">show</a> <a href="{{ path('app_fault_show', {'id': fault.id}) }}">show</a>
<a href="{{ path('app_fault_edit', {'id': fault.id}) }}">edit</a> <a href="{{ path('app_fault_edit', {'id': fault.id}) }}">edit</a>

View File

@ -15,7 +15,7 @@
<body> <body>
<div class="background"></div> <div class="background"></div>
<img class="logoCalendar" src="{{ asset('styles/image/calendar.png') }}" alt="Logo Calendrier"> <img class="logoCalendar" src="{{ asset('styles/image/calendar.png') }}" alt="Logo Calendrier">
<a href="{{ path('app_intervention_index') }}" class="intervention">Créer une intervention</a> <a href="{{ path('app_intervention_index') }}" class="intervention">Voir les interventions</a>
<img class="logoChauffagiste" src="{{ asset('styles/image/chauffagiste.png') }}" alt="Logo Chauffagiste"> <img class="logoChauffagiste" src="{{ asset('styles/image/chauffagiste.png') }}" alt="Logo Chauffagiste">
<h1 class="chauffagiste">Choisissez un chauffagiste</h1> <h1 class="chauffagiste">Choisissez un chauffagiste</h1>
<img class="logoModifier" src="{{ asset('styles/image/modifier.png') }}"> <img class="logoModifier" src="{{ asset('styles/image/modifier.png') }}">