diff --git a/Resources/translations/messages.fr.yml b/Resources/translations/messages.fr.yml index 78cd18814..3d4b97198 100644 --- a/Resources/translations/messages.fr.yml +++ b/Resources/translations/messages.fr.yml @@ -18,6 +18,7 @@ User: Utilisateur Report data: Données du rapport 'Report view : %name%': 'Rapport : %name%' Report: Rapport +No report registered for this person.: Aucun rapport pour cette personne. #Flash messages 'Success : report created!': "Succès : le rapport a bien été créé !" diff --git a/Resources/views/Report/list.html.twig b/Resources/views/Report/list.html.twig index 9e0ad5c47..9cd095647 100644 --- a/Resources/views/Report/list.html.twig +++ b/Resources/views/Report/list.html.twig @@ -21,27 +21,35 @@ {% block title %}{{ 'Report list' |trans }}{% endblock title %} {% block personcontent %} + +

{{ 'Report list'|trans }}

+ + {% if reports|length == 0 %} +

+ {{ "No report registered for this person."|trans }} + {{ 'Create a new report'|trans }} +

+ {% else %} - - + {% for report in reports %} - +
{{ 'Date' | trans }} {{ 'Report type' | trans }} {{ 'Circle' | trans }}{{ 'Actions'|trans }}
{% if report.date %}{{ report.date|localizeddate('long', 'none') }}{% endif %}{{ report.cFGroup.getName(app.request.locale) }}{{ report.cFGroup.getName|localize_translatable_string }} {{ report.scope.name|localize_translatable_string }}
+ + {% endif %} + + + {% endblock %}