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

37 lines
897 B
Twig

{% extends 'base.html.twig' %}
{% block title %}Species{% endblock %}
{% block body %}
<h1>{{ species.vernacularName }}</h1>
<p>
🔬 Nom Scientifique : {{ species.scientificName }}<br/>
📍 Region : {{ species.region }}
</p>
<div>
<h2>Posts :</h2>
{% for post in species.posts %}
<div>
<dt>
<h3>{{ post.publicationDate | date }}</h3>
</dt>
<dl>
<dt>📍Géolocalisation</dt>
<dd>{{ post.longitude }} - {{ post.latitude }}</dd>
<dt>📍Commentaire</dt>
<dd>{{ post.getCommentary }}</dd>
</dl>
</div>
{% endfor %}
<a href="{{ path('app_species_index') }}">back to list</a>
<a href="{{ path('app_species_edit', {'id': species.id}) }}">edit</a>
{{ include('species/_delete_form.html.twig') }}
</div>
{% endblock %}