diff --git a/Resources/translations/messages.fr.yml b/Resources/translations/messages.fr.yml index f5022bd77..0aaccf0d0 100644 --- a/Resources/translations/messages.fr.yml +++ b/Resources/translations/messages.fr.yml @@ -68,6 +68,7 @@ Reset: 'Remise à zéro' 'Create accompanying period': 'Nouvelle ouverture-fermeture à une autre date' 'Closing motive': 'Motif de clôture' 'Person details': 'Détails de la personne' +'Update details for %name%': 'Modifier détails de %name%' Accompanying period list: Périodes d'accompagnement #timeline diff --git a/Resources/views/Person/edit.html.twig b/Resources/views/Person/edit.html.twig index 5b768f37c..10472a12f 100644 --- a/Resources/views/Person/edit.html.twig +++ b/Resources/views/Person/edit.html.twig @@ -18,14 +18,21 @@ {% set activeRouteKey = '' %} -{% block title %}ChillPersonBundle:Person:see{% endblock %} +{% block title %}{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName } )|capitalize }}{% endblock %} {% block personcontent %} + +

{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName|capitalize } ) }}

{% form_theme form 'ChillMainBundle:Form:fields.html.twig' %} {{ form_start(form) }} +
+

{{ 'Memo'|trans }}

+{{ form_row(form.memo, {'label' : 'Memo'} ) }} +
+

{{ 'General information'|trans }}

{{ form_row(form.firstName, {'label' : 'First name'}) }} @@ -54,7 +61,6 @@
-{{ form_row(form.memo, {'label' : 'Memo'} ) }} {{ form_rest(form) }} diff --git a/Resources/views/Person/view.html.twig b/Resources/views/Person/view.html.twig index 7f93df1ff..5ae10a9a5 100644 --- a/Resources/views/Person/view.html.twig +++ b/Resources/views/Person/view.html.twig @@ -23,7 +23,8 @@ This view should receive those arguments: - person #} -{% block title %}ChillPersonBundle:Person:see{% endblock %} +{% block title %}{{ 'Person details'|trans|capitalize ~ ' ' ~ person.firstName|capitalize ~ + ' ' ~ person.lastName }}{% endblock %} {# we define variables to include an edit form repeated multiple time across the page @@ -34,8 +35,21 @@ This view should receive those arguments: {% block personcontent %} + +
+ {% if person.memo is not empty %} +
+
+

{{ 'Memo'|trans|upper }}

+ +

+

{{ person.memo|nl2br }}
+

+
+
+ {% endif %}

{{ 'General information'|trans|upper }}

@@ -74,6 +88,7 @@ This view should receive those arguments:
{{ 'Place of birth'|trans }} :
{{ person.placeOfBirth }}
+
{{ 'Country of birth'|trans }} :
{% spaceless %} {% if person.countryOfBirth is not null %} {{ person.countryOfBirth.name|localize_translatable_string }}