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:
2024-06-07 17:49:12 +02:00
parent 82a3f69fa4
commit 49d60871c9
29 changed files with 740 additions and 86 deletions

View File

@@ -1,6 +1,6 @@
{% extends 'base.html.twig' %}
{% block title %}Herbarium - Espèces{% endblock %}
{% block title %}Species{% endblock %}
{% block body %}
<style>
@@ -14,16 +14,17 @@
<dl>
{% for specie in species %}
<dt>
<a href={{ url('app_species') ~ '/' ~ specie.getId }}>
🌿 {{ specie.getVernacularName }}
<a href={{ path('app_species_show', {'id': specie.id}) }}>
🌿 {{ specie.vernacularName }}
</a>
</dt>
<dd >
🔬 Nom Scientifique : {{ specie.getScientificName }}<br/>
📍 Region : {{ specie.getRegion }}
🔬 Nom Scientifique : {{ specie.scientificName }}<br/>
📍 Region : {{ specie.region }}
</dd><br/>
{% endfor %}
</dl>
<a href="{{ path('app_species_new') }}">Create new</a>
</div>
{% endblock %}