twig oscar
This commit is contained in:
parent
4af5d73497
commit
3d693511d0
@ -1,13 +1,36 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Edit Degree{% endblock %}
|
||||
{% block title %}Modifier un Diplôme{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Edit Degree</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-4xl font-semibold text-gray-800 mb-6">Modifier le Diplôme</h1>
|
||||
|
||||
{{ include('degree/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
<div class="bg-white shadow-md rounded-lg p-6">
|
||||
<h2 class="text-2xl font-medium text-gray-700 mb-6">Modifier les informations du diplôme</h2>
|
||||
|
||||
<a href="{{ path('app_degree_index') }}">back to list</a>
|
||||
{{ form_start(form) }}
|
||||
<div class="mb-4">
|
||||
<label for="degree_label" class="block text-lg font-medium text-gray-700 mb-2">Label du diplôme</label>
|
||||
<div class="mt-1">
|
||||
{{ form_widget(form.label, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<button type="submit" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full w-full">
|
||||
Mettre à jour
|
||||
</button>
|
||||
</div>
|
||||
{{ form_end(form) }}
|
||||
|
||||
|
||||
<div class="mt-6 flex justify-between">
|
||||
<a href="{{ path('app_degree_index') }}" class="text-teal-500 hover:text-teal-700 text-lg">
|
||||
<i class="fas fa-arrow-left"></i> Retour à la liste des diplômes
|
||||
</a>
|
||||
|
||||
{{ include('degree/_delete_form.html.twig') }}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
@ -1,35 +1,57 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Degree index{% endblock %}
|
||||
{% block title %}List of Degrees{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Degree index</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-3xl font-bold mb-4">Liste des Diplômes</h1>
|
||||
|
||||
<table class="table">
|
||||
<!-- Tableau des diplômes -->
|
||||
<div class="overflow-x-auto bg-white shadow-lg rounded-lg">
|
||||
<table class="min-w-full table-auto">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Label</th>
|
||||
<th>actions</th>
|
||||
<tr class="bg-gray-800 text-white">
|
||||
<th class="px-4 py-2 text-left">ID</th>
|
||||
<th class="px-4 py-2 text-left">Label</th>
|
||||
<th class="px-4 py-2 text-left">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for degree in degrees %}
|
||||
<tr>
|
||||
<td>{{ degree.id }}</td>
|
||||
<td>{{ degree.label }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_degree_show', {'id': degree.id}) }}">show</a>
|
||||
<a href="{{ path('app_degree_edit', {'id': degree.id}) }}">edit</a>
|
||||
<tr class="border-b">
|
||||
<td class="px-4 py-2">{{ degree.id }}</td>
|
||||
<td class="px-4 py-2">{{ degree.label }}</td>
|
||||
<td class="px-4 py-2">
|
||||
<!-- Voir le diplôme -->
|
||||
<a href="{{ path('app_degree_show', {'id': degree.id}) }}" class="text-teal-500 hover:text-teal-700 mr-3">
|
||||
<i class="fas fa-eye"></i> Voir
|
||||
</a>
|
||||
|
||||
<!-- Modifier le diplôme -->
|
||||
<a href="{{ path('app_degree_edit', {'id': degree.id}) }}" class="text-yellow-500 hover:text-yellow-700 mr-3">
|
||||
<i class="fas fa-edit"></i> Modifier
|
||||
</a>
|
||||
|
||||
<!-- Formulaire pour supprimer le diplôme -->
|
||||
<form method="post" action="{{ path('app_degree_delete', {'id': degree.id}) }}" style="display:inline;">
|
||||
<input type="hidden" name="_method" value="DELETE">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ degree.id) }}">
|
||||
<button type="submit" class="text-red-500 hover:text-red-700">
|
||||
<i class="fas fa-trash-alt"></i> Supprimer
|
||||
</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="3">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<a href="{{ path('app_degree_new') }}">Create new</a>
|
||||
<!-- Lien pour ajouter un nouveau diplôme -->
|
||||
<div class="mt-4">
|
||||
<a href="{{ path('app_degree_new') }}" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full">
|
||||
<i class="fas fa-plus-circle"></i> Ajouter un nouveau diplôme
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,11 +1,34 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}New Degree{% endblock %}
|
||||
{% block title %}Créer un Nouveau Diplôme{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Create new Degree</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-4xl font-semibold text-gray-800 mb-6">Créer un Nouveau Diplôme</h1>
|
||||
|
||||
{{ include('degree/_form.html.twig') }}
|
||||
<div class="bg-white shadow-md rounded-lg p-6">
|
||||
{{ form_start(form) }}
|
||||
|
||||
<a href="{{ path('app_degree_index') }}">back to list</a>
|
||||
<div class="mb-6">
|
||||
<label for="degree_label" class="block text-lg font-medium text-gray-700 mb-2">Label du Diplôme</label>
|
||||
<div class="mt-1">
|
||||
{{ form_widget(form.label, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<button type="submit" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full w-full">
|
||||
Créer le Diplôme
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<a href="{{ path('app_degree_index') }}" class="text-teal-500 hover:text-teal-700 text-lg">
|
||||
<i class="fas fa-arrow-left"></i> Retour à la liste des diplômes
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,26 +1,42 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Degree{% endblock %}
|
||||
{% block title %}Détail du Diplôme{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Degree</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-4xl font-semibold text-gray-800 mb-6">Détail du Diplôme</h1>
|
||||
|
||||
<table class="table">
|
||||
<div class="bg-white shadow-md rounded-lg p-6">
|
||||
<table class="min-w-full">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ degree.id }}</td>
|
||||
<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">{{ degree.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Label</th>
|
||||
<td>{{ degree.label }}</td>
|
||||
<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">{{ degree.label }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<a href="{{ path('app_degree_index') }}">back to list</a>
|
||||
<div class="mt-6 flex justify-between">
|
||||
<a href="{{ path('app_degree_index') }}"
|
||||
class="text-teal-500 hover:text-teal-700 text-lg">
|
||||
<i class="fas fa-arrow-left"></i> Retour à la liste des diplômes
|
||||
</a>
|
||||
|
||||
<a href="{{ path('app_degree_edit', {'id': degree.id}) }}">edit</a>
|
||||
|
||||
{{ include('degree/_delete_form.html.twig') }}
|
||||
<div class="flex items-center space-x-4">
|
||||
<a href="{{ path('app_degree_edit', {'id': degree.id}) }}"
|
||||
class="text-yellow-500 hover:text-yellow-700 text-lg">
|
||||
<i class="fas fa-edit"></i> Modifier ce diplôme
|
||||
</a>
|
||||
<a href="{{ path('app_degree_delete', {'id': degree.id}) }}"
|
||||
class="bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-lg">
|
||||
<i class="fas fa-trash-alt"></i> Supprimer
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,13 +1,40 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Edit FAQ{% endblock %}
|
||||
{% block title %}Modifier la FAQ{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Edit FAQ</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-3xl font-bold mb-4">Modifier la FAQ</h1>
|
||||
|
||||
{{ include('faq/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
<div class="bg-white shadow-md rounded-lg p-6">
|
||||
{{ form_start(form) }}
|
||||
|
||||
<a href="{{ path('app_faq_index') }}">back to list</a>
|
||||
<div class="mb-4">
|
||||
<label for="faq_question" class="block text-lg font-medium text-gray-700 mb-2">Question</label>
|
||||
<div class="mt-1">
|
||||
{{ form_widget(form.question, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ include('faq/_delete_form.html.twig') }}
|
||||
<div class="mb-4">
|
||||
<label for="faq_answer" class="block text-lg font-medium text-gray-700 mb-2">Réponse</label>
|
||||
<div class="mt-1">
|
||||
{{ form_widget(form.answer, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<button type="submit" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full w-full">
|
||||
Mettre à jour la FAQ
|
||||
</button>
|
||||
</div>
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<a href="{{ path('app_faq_index') }}" class="text-teal-500 hover:text-teal-700">
|
||||
<i class="fas fa-arrow-left"></i> Retour à la liste des FAQs
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,39 +1,54 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}FAQ index{% endblock %}
|
||||
{% block title %}Liste des FAQs{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>FAQ index</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-3xl font-bold mb-4">Liste des FAQs</h1>
|
||||
|
||||
<table class="table">
|
||||
<div class="overflow-x-auto bg-white shadow-lg rounded-lg">
|
||||
<table class="min-w-full table-auto">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Question</th>
|
||||
<th>Answer</th>
|
||||
<th>UpdateDate</th>
|
||||
<th>actions</th>
|
||||
<tr class="bg-gray-800 text-white">
|
||||
<th class="px-4 py-2 text-left">ID</th>
|
||||
<th class="px-4 py-2 text-left">Question</th>
|
||||
<th class="px-4 py-2 text-left">Réponse</th>
|
||||
<th class="px-4 py-2 text-left">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for faq in faqs %}
|
||||
<tr>
|
||||
<td>{{ faq.id }}</td>
|
||||
<td>{{ faq.question }}</td>
|
||||
<td>{{ faq.answer }}</td>
|
||||
<td>{{ faq.updateDate ? faq.updateDate|date('Y-m-d') : '' }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_faq_show', {'id': faq.id}) }}">show</a>
|
||||
<a href="{{ path('app_faq_edit', {'id': faq.id}) }}">edit</a>
|
||||
<tr class="border-b">
|
||||
<td class="px-4 py-2">{{ faq.id }}</td>
|
||||
<td class="px-4 py-2">{{ faq.question }}</td>
|
||||
<td class="px-4 py-2">{{ faq.answer }}</td>
|
||||
<td class="px-4 py-2">
|
||||
<a href="{{ path('app_faq_show', {'id': faq.id}) }}" class="text-teal-500 hover:text-teal-700 mr-3">
|
||||
<i class="fas fa-eye"></i> Voir
|
||||
</a>
|
||||
|
||||
<a href="{{ path('app_faq_edit', {'id': faq.id}) }}" class="text-yellow-500 hover:text-yellow-700 mr-3">
|
||||
<i class="fas fa-edit"></i> Modifier
|
||||
</a>
|
||||
|
||||
<form method="post" action="{{ path('app_faq_delete', {'id': faq.id}) }}" style="display:inline;">
|
||||
<input type="hidden" name="_method" value="DELETE">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ faq.id) }}">
|
||||
<button type="submit" class="text-red-500 hover:text-red-700">
|
||||
<i class="fas fa-trash-alt"></i> Supprimer
|
||||
</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="5">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<a href="{{ path('app_faq_new') }}">Create new</a>
|
||||
<div class="mt-4">
|
||||
<a href="{{ path('app_faq_new') }}" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full">
|
||||
<i class="fas fa-plus-circle"></i> Ajouter une FAQ
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,11 +1,40 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}New FAQ{% endblock %}
|
||||
{% block title %}Créer une FAQ{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Create new FAQ</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-3xl font-bold mb-4">Créer une nouvelle FAQ</h1>
|
||||
|
||||
{{ include('faq/_form.html.twig') }}
|
||||
<div class="bg-white shadow-md rounded-lg p-6">
|
||||
{{ form_start(form) }}
|
||||
|
||||
<a href="{{ path('app_faq_index') }}">back to list</a>
|
||||
<div class="mb-4">
|
||||
<label for="faq_question" class="block text-lg font-medium text-gray-700 mb-2">Question</label>
|
||||
<div class="mt-1">
|
||||
{{ form_widget(form.question, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-4">
|
||||
<label for="faq_answer" class="block text-lg font-medium text-gray-700 mb-2">Réponse</label>
|
||||
<div class="mt-1">
|
||||
{{ form_widget(form.answer, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<button type="submit" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full w-full">
|
||||
Créer la FAQ
|
||||
</button>
|
||||
</div>
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<a href="{{ path('app_faq_index') }}" class="text-teal-500 hover:text-teal-700">
|
||||
<i class="fas fa-arrow-left"></i> Retour à la liste des FAQs
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,34 +1,48 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}FAQ{% endblock %}
|
||||
{% block title %}Détail de la FAQ{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>FAQ</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-3xl font-bold mb-4">Détail de la FAQ</h1>
|
||||
|
||||
<table class="table">
|
||||
<div class="bg-white shadow-md rounded-lg p-6">
|
||||
<table class="min-w-full">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ faq.id }}</td>
|
||||
<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">{{ faq.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Question</th>
|
||||
<td>{{ faq.question }}</td>
|
||||
<tr class="border-b">
|
||||
<th class="px-6 py-4 text-lg font-medium text-gray-700">Question</th>
|
||||
<td class="px-6 py-4 text-lg text-gray-900">{{ faq.question }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Answer</th>
|
||||
<td>{{ faq.answer }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>UpdateDate</th>
|
||||
<td>{{ faq.updateDate ? faq.updateDate|date('Y-m-d') : '' }}</td>
|
||||
<tr class="border-b">
|
||||
<th class="px-6 py-4 text-lg font-medium text-gray-700">Réponse</th>
|
||||
<td class="px-6 py-4 text-lg text-gray-900">{{ faq.answer }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<a href="{{ path('app_faq_index') }}">back to list</a>
|
||||
<div class="mt-6 flex justify-between">
|
||||
<a href="{{ path('app_faq_index') }}" class="text-teal-500 hover:text-teal-700">
|
||||
<i class="fas fa-arrow-left"></i> Retour à la liste des FAQs
|
||||
</a>
|
||||
|
||||
<a href="{{ path('app_faq_edit', {'id': faq.id}) }}">edit</a>
|
||||
<a href="{{ path('app_faq_edit', {'id': faq.id}) }}" class="text-yellow-500 hover:text-yellow-700">
|
||||
<i class="fas fa-edit"></i> Modifier cette FAQ
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{{ include('faq/_delete_form.html.twig') }}
|
||||
<div class="mt-6">
|
||||
<form method="post" action="{{ path('app_faq_delete', {'id': faq.id}) }}" style="display:inline;">
|
||||
<input type="hidden" name="_method" value="DELETE">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ faq.id) }}">
|
||||
<button type="submit" class="text-red-500 hover:text-red-700">
|
||||
<i class="fas fa-trash-alt"></i> Supprimer cette question
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,13 +1,48 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Edit Skill{% endblock %}
|
||||
{% block title %}Modifier la compétence{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Edit Skill</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-4xl font-semibold text-gray-800 mb-6">Modifier la compétence</h1>
|
||||
|
||||
{{ include('skill/_form.html.twig', {'button_label': 'Update'}) }}
|
||||
<div class="bg-white shadow-md rounded-lg p-6">
|
||||
<h2 class="text-2xl font-medium text-gray-700 mb-6">Modifier les informations de la compétence</h2>
|
||||
|
||||
<a href="{{ path('app_skill_index') }}">back to list</a>
|
||||
{{ form_start(form) }}
|
||||
<div class="mb-4">
|
||||
<label for="skill_label" class="block text-lg font-medium text-gray-700 mb-2">Label de la compétence</label>
|
||||
<div class="mt-1">
|
||||
{{ form_widget(form.label, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ include('skill/_delete_form.html.twig') }}
|
||||
<div class="mt-6">
|
||||
<button type="submit" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full w-full">
|
||||
Mettre à jour
|
||||
</button>
|
||||
</div>
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
<div class="flex items-center space-x-4">
|
||||
<a href="{{ path('app_skill_show', {'id': skill.id}) }}" class="bg-yellow-500 hover:bg-yellow-600 text-white px-4 py-2 rounded-lg">
|
||||
Voir la compétence
|
||||
</a>
|
||||
|
||||
<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>
|
||||
{% endblock %}
|
||||
|
@ -1,35 +1,52 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Skill index{% endblock %}
|
||||
{% block title %}Liste des Compétences{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Skill index</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-3xl font-bold mb-4">Liste des Compétences</h1>
|
||||
|
||||
<table class="table">
|
||||
<div class="overflow-x-auto bg-white shadow-lg rounded-lg">
|
||||
<table class="min-w-full table-auto">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Label</th>
|
||||
<th>actions</th>
|
||||
<tr class="bg-gray-800 text-white">
|
||||
<th class="px-4 py-2 text-left">ID</th>
|
||||
<th class="px-4 py-2 text-left">Label</th>
|
||||
<th class="px-4 py-2 text-left">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for skill in skills %}
|
||||
<tr>
|
||||
<td>{{ skill.id }}</td>
|
||||
<td>{{ skill.label }}</td>
|
||||
<td>
|
||||
<a href="{{ path('app_skill_show', {'id': skill.id}) }}">show</a>
|
||||
<a href="{{ path('app_skill_edit', {'id': skill.id}) }}">edit</a>
|
||||
<tr class="border-b">
|
||||
<td class="px-4 py-2">{{ skill.id }}</td>
|
||||
<td class="px-4 py-2">{{ skill.label }}</td>
|
||||
<td class="px-4 py-2">
|
||||
<a href="{{ path('app_skill_show', {'id': skill.id}) }}" class="text-teal-500 hover:text-teal-700 mr-3">
|
||||
<i class="fas fa-eye"></i> Voir
|
||||
</a>
|
||||
|
||||
<a href="{{ path('app_skill_edit', {'id': skill.id}) }}" class="text-yellow-500 hover:text-yellow-700 mr-3">
|
||||
<i class="fas fa-edit"></i> Modifier
|
||||
</a>
|
||||
|
||||
<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="text-red-500 hover:text-red-700">
|
||||
<i class="fas fa-trash-alt"></i> Supprimer
|
||||
</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="3">no records found</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<a href="{{ path('app_skill_new') }}">Create new</a>
|
||||
<div class="mt-4">
|
||||
<a href="{{ path('app_skill_new') }}" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full">
|
||||
<i class="fas fa-plus-circle"></i> Ajouter une nouvelle compétence
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,11 +1,34 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}New Skill{% endblock %}
|
||||
{% block title %}Créer une Nouvelle Compétence{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Create new Skill</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-4xl font-semibold text-gray-800 mb-6">Créer une Nouvelle Compétence</h1>
|
||||
|
||||
{{ include('skill/_form.html.twig') }}
|
||||
<div class="bg-white shadow-md rounded-lg p-6">
|
||||
{{ form_start(form) }}
|
||||
|
||||
<a href="{{ path('app_skill_index') }}">back to list</a>
|
||||
<div class="mb-6">
|
||||
<label for="skill_label" class="block text-lg font-medium text-gray-700 mb-2">Label de la compétence</label>
|
||||
<div class="mt-1">
|
||||
{{ form_widget(form.label, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<button type="submit" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full w-full">
|
||||
Créer la Compétence
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,26 +1,34 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Skill{% endblock %}
|
||||
{% block title %}Créer une Nouvelle Compétence{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Skill</h1>
|
||||
<div class="container mx-auto p-6">
|
||||
<h1 class="text-4xl font-semibold text-gray-800 mb-6">Créer une Nouvelle Compétence</h1>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ skill.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Label</th>
|
||||
<td>{{ skill.label }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="bg-white shadow-md rounded-lg p-6">
|
||||
{{ form_start(form) }}
|
||||
|
||||
<a href="{{ path('app_skill_index') }}">back to list</a>
|
||||
<div class="mb-6">
|
||||
<label for="skill_label" class="block text-lg font-medium text-gray-700 mb-2">Label de la compétence</label>
|
||||
<div class="mt-1">
|
||||
{{ form_widget(form.label, {'attr': {'class': 'block w-full p-2 border rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-teal-500'}}) }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a href="{{ path('app_skill_edit', {'id': skill.id}) }}">edit</a>
|
||||
<div class="mt-6">
|
||||
<button type="submit" class="bg-teal-500 hover:bg-teal-600 text-white py-2 px-4 rounded-full w-full">
|
||||
Créer la Compétence
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{{ include('skill/_delete_form.html.twig') }}
|
||||
{{ form_end(form) }}
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user