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>
This commit is contained in:
Hugo PRADIER
2024-06-13 08:46:30 +02:00
committed by Clément FRÉVILLE
parent ccb2b541ea
commit 8a1edeb938
31 changed files with 1919 additions and 94 deletions

View File

@@ -1,21 +1,21 @@
{% extends 'base.html.twig' %}
{% block title %}Post index{% endblock %}
{% block title %}{{ 'post_index'|trans }}{% endblock %}
{% block body %}
<h1>Post index</h1>
<h1>{{ 'post_index'|trans }}</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>FoundDate</th>
<th>PublicationDate</th>
<th>{{ 'found_date'|trans }}</th>
<th>{{ 'publication_date'|trans }}</th>
<th>Latitude</th>
<th>Longitude</th>
<th>Altitude</th>
<th>Commentary</th>
<th>actions</th>
<th>{{ 'commentary'|trans }}</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
@@ -29,17 +29,17 @@
<td>{{ post.altitude }}</td>
<td>{{ post.commentary }}</td>
<td>
<a href="{{ path('app_post_show', {'id': post.id}) }}">show</a>
<a href="{{ path('app_post_edit', {'id': post.id}) }}">edit</a>
<a href="{{ path('app_post_show', {'id': post.id}) }}">{{ 'show'|trans }}</a>
<a href="{{ path('app_post_edit', {'id': post.id}) }}">{{ 'edit'|trans }}</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="8">no records found</td>
<td colspan="8">{{ 'no_records_found'|trans }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_post_new') }}">Create new</a>
<a href="{{ path('app_post_new') }}">{{ 'create_new'|trans }}</a>
{% endblock %}