hegresphere/templates/skill/show.html.twig

45 lines
1.9 KiB
Twig
Raw Normal View History

2024-11-21 17:04:56 +01:00
{% extends 'base.html.twig' %}
2024-12-05 16:53:20 +01:00
{% block title %}Détail de la compétence{% endblock %}
2024-11-21 17:04:56 +01:00
{% block body %}
2024-12-05 16:53:20 +01:00
<div class="container mx-auto p-6">
<h1 class="text-4xl font-semibold text-gray-800 mb-6">Détail de la compétence</h1>
2024-11-21 17:04:56 +01:00
2024-12-05 16:53:20 +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">{{ skill.id }}</td>
</tr>
<tr class="border-b">
<th class="px-6 py-4 text-lg font-medium text-gray-700">Label</th>
<td class="px-6 py-4 text-lg text-gray-900">{{ skill.label }}</td>
</tr>
</tbody>
</table>
</div>
2024-11-21 17:04:56 +01:00
2024-12-05 16:53:20 +01:00
<div class="mt-6 flex justify-between items-center">
<a href="{{ path('app_skill_index') }}" class="text-teal-500 hover:text-teal-700 text-lg">
<i class="fas fa-arrow-left"></i> Retour à la liste des compétences
</a>
2024-11-21 17:04:56 +01:00
2024-12-05 16:53:20 +01:00
<div class="flex items-center space-x-4">
<a href="{{ path('app_skill_edit', {'id': skill.id}) }}" class="bg-yellow-500 hover:bg-yellow-600 text-white px-4 py-2 rounded-lg">
Modifier cette compétence
</a>
2024-11-21 17:04:56 +01:00
2024-12-05 16:53:20 +01:00
<form method="post" action="{{ path('app_skill_delete', {'id': skill.id}) }}" style="display:inline;">
<input type="hidden" name="_method" value="DELETE">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ skill.id) }}">
<button type="submit" class="bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-lg">
Supprimer
</button>
</form>
</div>
</div>
</div>
2024-11-21 17:04:56 +01:00
{% endblock %}