Files
herbarium/templates/species/show.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

37 lines
1003 B
Twig

{% extends 'base.html.twig' %}
{% block title %}{{ 'species'|trans }}{% endblock %}
{% block body %}
<h1>{{ species.vernacularName }}</h1>
<p>
🔬 {{ 'scientific_name'|trans }} : {{ species.scientificName }}<br/>
📍 {{ 'region'|trans }} : {{ species.region }}
</p>
<div>
<h2>{{ 'posts'|trans }} :</h2>
{% for post in species.posts %}
<div>
<dt>
<h3>{{ post.publicationDate | date }}</h3>
</dt>
<dl>
<dt>📍{{ 'geolocation'|trans }}</dt>
<dd>{{ post.longitude }} - {{ post.latitude }}</dd>
<dt>💬{{ 'commentary'|trans }}</dt>
<dd>{{ post.getCommentary }}</dd>
</dl>
</div>
{% endfor %}
<a href="{{ path('app_species_index') }}">{{ 'back_to_list'|trans }}</a>
<a href="{{ path('app_species_edit', {'id': species.id}) }}">{{ 'edit'|trans }}</a>
{{ include('species/_delete_form.html.twig') }}
</div>
{% endblock %}