2024-11-21 17:04:56 +01:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
2024-12-07 16:00:08 +01:00
|
|
|
{% block title %}Détail de l'entreprise{% endblock %}
|
2024-11-21 17:04:56 +01:00
|
|
|
|
|
|
|
{% block body %}
|
2024-12-07 16:00:08 +01:00
|
|
|
<div class="container mx-auto p-6">
|
|
|
|
<h1 class="text-3xl font-bold mb-4">Détail de l'entreprise</h1>
|
2024-11-21 17:04:56 +01:00
|
|
|
|
2024-12-07 16:00:08 +01:00
|
|
|
<div class="bg-white shadow-md rounded-lg p-6">
|
|
|
|
<table class="min-w-full">
|
|
|
|
<tbody>
|
|
|
|
<tr class="border-b">
|
|
|
|
<th class="px-6 py-4 text-lg font-medium text-gray-700">ID</th>
|
|
|
|
<td class="px-6 py-4 text-lg text-gray-900">{{ company.id }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="border-b">
|
|
|
|
<th class="px-6 py-4 text-lg font-medium text-gray-700">Nom</th>
|
|
|
|
<td class="px-6 py-4 text-lg text-gray-900">{{ company.name }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="border-b">
|
|
|
|
<th class="px-6 py-4 text-lg font-medium text-gray-700">Adresse</th>
|
|
|
|
<td class="px-6 py-4 text-lg text-gray-900">{{ company.address }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="border-b">
|
|
|
|
<th class="px-6 py-4 text-lg font-medium text-gray-700">Téléphone</th>
|
|
|
|
<td class="px-6 py-4 text-lg text-gray-900">{{ company.tel }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="border-b">
|
|
|
|
<th class="px-6 py-4 text-lg font-medium text-gray-700">Email</th>
|
|
|
|
<td class="px-6 py-4 text-lg text-gray-900">{{ company.mail }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2024-11-21 17:04:56 +01:00
|
|
|
|
2024-12-07 16:00:08 +01:00
|
|
|
<div class="mt-6 flex justify-between">
|
|
|
|
<a href="{{ path('app_company_index') }}" class="text-teal-500 hover:text-teal-700">
|
|
|
|
<i class="fas fa-arrow-left"></i> Retour à la liste des entreprises
|
|
|
|
</a>
|
2024-11-21 17:04:56 +01:00
|
|
|
|
2024-12-07 16:00:08 +01:00
|
|
|
<a href="{{ path('app_company_edit', {'id': company.id}) }}" class="text-yellow-500 hover:text-yellow-700">
|
|
|
|
<i class="fas fa-edit"></i> Modifier cette entreprise
|
|
|
|
</a>
|
|
|
|
</div>
|
2024-11-21 17:04:56 +01:00
|
|
|
|
2024-12-07 16:00:08 +01:00
|
|
|
<div class="mt-6">
|
|
|
|
<form method="post" action="{{ path('app_company_delete', {'id': company.id}) }}" style="display:inline;">
|
|
|
|
<input type="hidden" name="_method" value="DELETE">
|
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ company.id) }}">
|
|
|
|
<button type="submit" class="text-red-500 hover:text-red-700">
|
|
|
|
<i class="fas fa-trash-alt"></i> Supprimer cette entreprise
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-11-21 17:04:56 +01:00
|
|
|
{% endblock %}
|