connexion base et création premier crud

This commit is contained in:
Logshiro
2025-10-16 17:01:43 +02:00
parent ea9a187326
commit 2e4dce40d4
38 changed files with 653 additions and 278 deletions

View File

@@ -0,0 +1,35 @@
{% extends 'base.html.twig' %}
{% block title %}Projet index{% endblock %}
{% block body %}
<h1>Projet index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Nom</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for projet in projets %}
<tr>
<td>{{ projet.id }}</td>
<td>{{ projet.nom }}</td>
<td>
<a href="{{ path('app_projet_show', {'id': projet.id}) }}">show</a>
<a href="{{ path('app_projet_edit', {'id': projet.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="3">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_projet_new') }}">Create new</a>
{% endblock %}