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:
@@ -1,9 +1,9 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Post{% endblock %}
|
||||
{% block title %}{{ 'post'|trans }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Post</h1>
|
||||
<h1>{{ 'post'|trans }}</h1>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
@@ -12,11 +12,11 @@
|
||||
<td>{{ post.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>FoundDate</th>
|
||||
<th>{{ 'found_date'|trans }}</th>
|
||||
<td>{{ post.foundDate ? post.foundDate|date('Y-m-d H:i:s') : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>PublicationDate</th>
|
||||
<th>{{ 'publication_date'|trans }}</th>
|
||||
<td>{{ post.publicationDate ? post.publicationDate|date('Y-m-d H:i:s') : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -38,15 +38,15 @@
|
||||
</tr>
|
||||
{% endif %}
|
||||
<tr>
|
||||
<th>Commentary</th>
|
||||
<th>{{ 'commentary'|trans }}</th>
|
||||
<td>{{ post.commentary }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_post_index') }}">back to list</a>
|
||||
<a href="{{ path('app_post_index') }}">{{ 'back_to_list'|trans }}</a>
|
||||
|
||||
<a href="{{ path('app_post_edit', {'id': post.id}) }}">edit</a>
|
||||
<a href="{{ path('app_post_edit', {'id': post.id}) }}">{{ 'edit'|trans }}</a>
|
||||
|
||||
{{ include('post/_delete_form.html.twig') }}
|
||||
|
||||
|
Reference in New Issue
Block a user