Files
herbarium/templates/species/index.html.twig
Hugo PRADIER 8a1edeb938 Ajout de la traduction (#15)
Co-authored-by: hugo.pradier2 <hugo.pradier2@etu.uca.fr>
Co-authored-by: clfreville2 <clement.freville2@etu.uca.fr>
Reviewed-on: https://codefirst.iut.uca.fr/git/clement.freville2/herbarium/pulls/15
Reviewed-by: Clément FRÉVILLE <clement.freville2@etu.uca.fr>
Co-authored-by: Hugo PRADIER <hugo.pradier2@etu.uca.fr>
Co-committed-by: Hugo PRADIER <hugo.pradier2@etu.uca.fr>
2024-06-13 08:46:30 +02:00

31 lines
907 B
Twig

{% extends 'base.html.twig' %}
{% block title %}{{ 'species'|trans }}{% 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>{{ 'list_of_species'|trans }}</h1>
<dl>
{% for specie in species %}
<dt>
<a href={{ path('app_species_show', {'id': specie.id}) }}>
🌿 {{ specie.vernacularName }}
</a>
</dt>
<dd >
🔬 {{ 'scientific_name'|trans }} : {{ specie.scientificName }}<br/>
📍 {{ 'region'|trans }} : {{ specie.region }}
</dd><br/>
{% endfor %}
</dl>
<a href="{{ path('app_species_new') }}">{{ 'create_new'|trans }}</a>
</div>
{% endblock %}