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

40 lines
1.1 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}Species index{% endblock %}
{% block body %}
<h1>Species index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Scientific_name</th>
<th>Vernacular_name</th>
<th>Region</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for species in species %}
<tr>
<td>{{ species.id }}</td>
<td>{{ species.scientificName }}</td>
<td>{{ species.vernacularName }}</td>
<td>{{ species.region }}</td>
<td>
<a href="{{ path('app_species_show', {'id': species.id}) }}">show</a>
<a href="{{ path('app_species_edit', {'id': species.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="5">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_species_new') }}">Create new</a>
{% endblock %}