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
This commit is contained in:
36
templates/species/show.html.twig
Normal file
36
templates/species/show.html.twig
Normal file
@@ -0,0 +1,36 @@
|
||||
{% 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 %}
|
Reference in New Issue
Block a user