Lien du bouton "Create Intervention" dans le calendrier, modification de la route pour "intervention/index.twig.html" dans le Controller ainsi que modification du bouton liste des intervention dans la page de création d'un intervention afin de le rendre fonctionnelle
This commit is contained in:
parent
e4a4986baa
commit
d048f55ad5
@ -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(),
|
||||
]);
|
||||
}
|
||||
|
@ -23,6 +23,7 @@
|
||||
<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_vehicle_index') }}">Gérer les véhicules</a></li>
|
||||
<li><a href="{{ path('app_fault_index') }}">Test des fault !</a></li>
|
||||
{% endif %}
|
||||
|
||||
{% if is_granted('ROLE_SECRETAIRE') %}
|
||||
|
@ -17,7 +17,9 @@
|
||||
<div class="sidebar-button">
|
||||
<img class="logoEmail" src="{{ asset('styles/image/3.png') }}">
|
||||
</div>
|
||||
<span>Create Intervention</span>
|
||||
<a href="{{ path('app_intervention_new') }}">
|
||||
<button>Create Intervention</button>
|
||||
</a>
|
||||
<div class="sidebar-button">
|
||||
<img class="logoEmail" src="{{ asset('styles/image/4.png') }}">
|
||||
</div>
|
||||
|
@ -18,6 +18,7 @@
|
||||
<tr>
|
||||
<td>{{ fault.id }}</td>
|
||||
<td>{{ fault.Wording }}</td>
|
||||
<td>{{ fault.actions }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_fault_show', {'id': fault.id}) }}">show</a>
|
||||
<a href="{{ path('app_fault_edit', {'id': fault.id}) }}">edit</a>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<body>
|
||||
<div class="background"></div>
|
||||
<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">
|
||||
<h1 class="chauffagiste">Choisissez un chauffagiste</h1>
|
||||
<img class="logoModifier" src="{{ asset('styles/image/modifier.png') }}">
|
||||
|
Loading…
x
Reference in New Issue
Block a user