connexion base et création premier crud
This commit is contained in:
33
templates/coucou/Coucou.html.twig
Normal file
33
templates/coucou/Coucou.html.twig
Normal 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 %}
|
||||
Reference in New Issue
Block a user