Compare commits
1 Commits
feature/Al
...
master
Author | SHA1 | Date | |
---|---|---|---|
0d6b65ef20 |
1
.idea/HegreEtConfort.iml
generated
1
.idea/HegreEtConfort.iml
generated
@ -3,7 +3,6 @@
|
|||||||
<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" />
|
||||||
|
@ -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
|
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
|
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
|
||||||
|
@ -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/index.html.twig', [
|
return $this->render('fault/admin.html.twig', [
|
||||||
'faults' => $faultRepository->findAll(),
|
'faults' => $faultRepository->findAll(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -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/index.html.twig', [
|
return $this->render('stock/admin.html.twig', [
|
||||||
'stocks' => $stockRepository->findAll(),
|
'stocks' => $stockRepository->findAll(),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -23,22 +23,21 @@
|
|||||||
<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('user_new') }}">Créer un chauffagiste</a></li>
|
<li><a href="{{ path('app_user_index') }}">Créer un chauffagiste</a></li>
|
||||||
<li><a href="{{ path('calendrier_index_secretaire') }}">Plannings chauffagistes</a></li>
|
<li><a href="{{ path('app_calendrier_indexSecretaire') }}">Plannings chauffagistes</a></li>
|
||||||
<li><a href="{{ path('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('vehicle_index') }}">Gérer les véhicules</a></li>
|
<li><a href="{{ path('app_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('calendrier_index_chauffagiste') }}">Mon planning</a></li>
|
<li><a href="{{ path('app_calendrier_indexChauffagiste') }}">Mon planning</a></li>
|
||||||
<li><a href="{{ path('intervention_index') }}">Mes interventions</a></li>
|
<li><a href="{{ path('app_intervention_index') }}">Mes interventions</a></li>
|
||||||
<li><a href="{{ path('stock_index') }}">Pièces détachées</a></li>
|
<li><a href="{{ path('app_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>
|
||||||
|
@ -17,9 +17,7 @@
|
|||||||
<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>
|
||||||
<a href="{{ path('app_intervention_new') }}">
|
<span>Create Intervention</span>
|
||||||
<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>
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
<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>
|
||||||
|
@ -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">Voir les interventions</a>
|
<a href="{{ path('app_intervention_index') }}" class="intervention">Créer une intervention</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') }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user