Création de la page species et detail specie

Co-authored-by: Clément Laporte <Clement.LAPORTE@etu.uca.fr>
Co-authored-by: clfreville2 <clement.freville2@etu.uca.fr>
Reviewed-on: https://codefirst.iut.uca.fr/git/clement.freville2/herbarium/pulls/8
Co-authored-by: Clément LAPORTE <clement.laporte@etu.uca.fr>
Co-committed-by: Clément LAPORTE <clement.laporte@etu.uca.fr>
This commit is contained in:
Clément LAPORTE
2024-06-07 15:27:55 +02:00
committed by Clément FRÉVILLE
parent 62da326e75
commit 82a3f69fa4
4 changed files with 103 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
{% extends 'base.html.twig' %}
{% block title %}Herbarium - Espèces{% endblock %}
{% block body %}
<style>
.example-wrapper { margin: 1em auto; max-width: 800px; width: 95%; font: 18px/1.5 sans-serif; }
.example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
</style>
<div class="example-wrapper">
<h1>Liste des espèces</h1>
<dl>
{% for specie in species %}
<dt>
<a href={{ url('app_species') ~ '/' ~ specie.getId }}>
🌿 {{ specie.getVernacularName }}
</a>
</dt>
<dd >
🔬 Nom Scientifique : {{ specie.getScientificName }}<br/>
📍 Region : {{ specie.getRegion }}
</dd><br/>
{% endfor %}
</dl>
</div>
{% endblock %}