show memo in person details + minor fixes

The memo is shown only if not empty.

minor fixes :

- re-add label 'country of birth' on view page
- set title to pages
This commit is contained in:
2016-01-18 21:32:22 +01:00
parent 4e4f45e2bc
commit 90f579d88a
3 changed files with 25 additions and 3 deletions

View File

@@ -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 %}
<h1>{{ 'Update details for %name%'|trans({ '%name%': person.firstName|capitalize ~ ' ' ~ person.lastName|capitalize } ) }}</h1>
{% form_theme form 'ChillMainBundle:Form:fields.html.twig' %}
{{ form_start(form) }}
<fieldset>
<legend><h2>{{ 'Memo'|trans }}</h2></legend>
{{ form_row(form.memo, {'label' : 'Memo'} ) }}
</fieldset>
<fieldset>
<legend><h2>{{ 'General information'|trans }}</h2></legend>
{{ form_row(form.firstName, {'label' : 'First name'}) }}
@@ -54,7 +61,6 @@
</fieldset>
{{ form_row(form.memo, {'label' : 'Memo'} ) }}
{{ form_rest(form) }}