Files
herbarium/templates/species/index.html.twig
clfreville2 49d60871c9 Add post and species forms
Squashed commit of the following:
Author: Hugo PRADIER <Hugo.PRADIER2@etu.uca.fr>
Author: bastien ollier <bastien.ollier@etu.uca.fr>
Author: clfreville2 <clement.freville2@etu.uca.fr>
Reviewed on #7
2024-06-07 18:31:20 +02:00

31 lines
841 B
Twig

{% extends 'base.html.twig' %}
{% block title %}Species{% 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={{ path('app_species_show', {'id': specie.id}) }}>
🌿 {{ specie.vernacularName }}
</a>
</dt>
<dd >
🔬 Nom Scientifique : {{ specie.scientificName }}<br/>
📍 Region : {{ specie.region }}
</dd><br/>
{% endfor %}
</dl>
<a href="{{ path('app_species_new') }}">Create new</a>
</div>
{% endblock %}