Compare commits
1 Commits
feature/Al
...
master
Author | SHA1 | Date | |
---|---|---|---|
0d6b65ef20 |
@ -17,17 +17,20 @@ class CalendrierController extends AbstractController
|
||||
]);
|
||||
}
|
||||
|
||||
#[Route('/calendrier/secretaire', name: 'calendrier_index_secretaire')]
|
||||
#[Route('/secretaire', name: 'app_calendrier_indexSecretaire')]
|
||||
public function indexSecretaire(): Response
|
||||
{
|
||||
return $this->render('calendrier/indexSecretaire.html.twig');
|
||||
return $this->render('calendrier/indexSecretaire.html.twig', [
|
||||
'controller_name' => 'CalendrierController',
|
||||
]);
|
||||
}
|
||||
|
||||
#[Route('/calendrier/chauffagiste', name: 'calendrier_index_chauffagiste')]
|
||||
#[Route('/chauffagiste', name: 'app_calendrier_indexChauffagiste')]
|
||||
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 un nouveau rdv
|
||||
|
@ -17,7 +17,7 @@ final class InterventionController extends AbstractController
|
||||
#[Route(name: 'app_intervention_index', methods: ['GET'])]
|
||||
public function index(InterventionRepository $interventionRepository): Response
|
||||
{
|
||||
return $this->render('intervention/admin.html.twig', [
|
||||
return $this->render('intervention/index.html.twig', [
|
||||
'interventions' => $interventionRepository->findAll(),
|
||||
]);
|
||||
}
|
||||
|
@ -27,17 +27,17 @@
|
||||
|
||||
{% if is_granted('ROLE_SECRETAIRE') %}
|
||||
<li><a href="{{ path('secretaire_dashboard') }}">Dashboard Secrétaire</a></li>
|
||||
<li><a href="{{ path('user_new') }}">Créer un chauffagiste</a></li>
|
||||
<li><a href="{{ path('calendrier_index_secretaire') }}">Plannings chauffagistes</a></li>
|
||||
<li><a href="{{ path('stock_index') }}">Gérer les stocks</a></li>
|
||||
<li><a href="{{ path('vehicle_index') }}">Gérer les véhicules</a></li>
|
||||
<li><a href="{{ path('app_user_index') }}">Créer un chauffagiste</a></li>
|
||||
<li><a href="{{ path('app_calendrier_indexSecretaire') }}">Plannings chauffagistes</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>
|
||||
{% endif %}
|
||||
|
||||
{% if is_granted('ROLE_CHAUFFAGISTE') %}
|
||||
<li><a href="{{ path('chauffagiste_dashboard') }}">Dashboard Chauffagiste</a></li>
|
||||
<li><a href="{{ path('calendrier_index_chauffagiste') }}">Mon planning</a></li>
|
||||
<li><a href="{{ path('intervention_index') }}">Mes interventions</a></li>
|
||||
<li><a href="{{ path('stock_index') }}">Pièces détachées</a></li>
|
||||
<li><a href="{{ path('app_calendrier_indexChauffagiste') }}">Mon planning</a></li>
|
||||
<li><a href="{{ path('app_intervention_index') }}">Mes interventions</a></li>
|
||||
<li><a href="{{ path('app_stock_index') }}">Pièces détachées</a></li>
|
||||
{% endif %}
|
||||
|
||||
<li><a href="{{ path('app_logout') }}">Déconnexion</a></li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user