connexion base et création premier crud

This commit is contained in:
Logshiro
2025-10-16 13:37:35 +02:00
parent 521d0a2d61
commit ea9a187326
38 changed files with 953 additions and 2 deletions

View File

@@ -0,0 +1,33 @@
{% extends 'base.html.twig' %}
{% block title %}Hello CoucouController!{% endblock %}
{% block body %}
<!-- Ajout de Bootstrap via CDN -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet">
<div class="container my-5">
<div class="card shadow-sm">
<div class="card-body">
<h1 class="card-title text-primary mb-4">{{ controller_name }} </h1>
<h3 class="text-secondary">{{ msg }}</h3>
<hr>
<h4>Tableau reçu :</h4>
<ol class="list-group list-group-numbered mb-4">
{% for ligne in tableau %}
<li class="list-group-item">{{ ligne }}</li>
{% endfor %}
</ol>
<!-- Bouton vers la page Sport -->
<a href="{{ path('app_sport') }}" class="btn btn-success btn-lg">Aller sur Sport</a>
</div>
</div>
</div>
<!-- Optionnel : JS Bootstrap pour composants interactifs -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"></script>
{% endblock %}