From 39dfd17c5dedfbd3cda780832d88a3ecb45c7f5a Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Fri, 4 Dec 2015 19:37:47 +0100 Subject: [PATCH] Improving UI --- Resources/views/Person/create.html.twig | 2 +- .../views/Person/create_review.html.twig | 2 +- Resources/views/Person/view.html.twig | 26 +++++++++---------- Resources/views/layout.html.twig | 17 +++++------- 4 files changed, 22 insertions(+), 25 deletions(-) diff --git a/Resources/views/Person/create.html.twig b/Resources/views/Person/create.html.twig index 2f373e43f..2e247b299 100644 --- a/Resources/views/Person/create.html.twig +++ b/Resources/views/Person/create.html.twig @@ -20,7 +20,7 @@ {% block content %}
-
+
{{ form_start(form) }}

{{ 'Add a person'|trans }}

diff --git a/Resources/views/Person/create_review.html.twig b/Resources/views/Person/create_review.html.twig index 46baa312a..168ffc750 100644 --- a/Resources/views/Person/create_review.html.twig +++ b/Resources/views/Person/create_review.html.twig @@ -20,7 +20,7 @@ {% block content %}
-
+
{% if alternatePersons is not empty %} diff --git a/Resources/views/Person/view.html.twig b/Resources/views/Person/view.html.twig index 6114d9442..317ea6fa9 100644 --- a/Resources/views/Person/view.html.twig +++ b/Resources/views/Person/view.html.twig @@ -35,19 +35,19 @@ This view should receive those arguments: {% block personcontent %} -
+

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

-
{{ 'First name'|trans }} :
+
{{ 'First name'|trans }} :
{{ person.firstName }}
-
{{ 'Last name'|trans }} :
+
{{ 'Last name'|trans }} :
{{ person.lastName }}
-
{{ 'Gender'|trans }} :
+
{{ 'Gender'|trans }} :
{{ ( person.gender|default('Not given'))|trans }}
@@ -63,7 +63,7 @@ This view should receive those arguments:

 {{ 'Birth information'|trans|upper }}

-
{{ 'Date of birth'|trans }} :
+
{{ 'Date of birth'|trans }} :
{%- if person.birthdate is not null -%} {{ person.birthdate|localizeddate('long', 'none') }} @@ -72,7 +72,7 @@ This view should receive those arguments: {%- endif -%}
-
{{ 'Place of birth'|trans }} :
+
{{ 'Place of birth'|trans }} :
{{ person.placeOfBirth }}
{% spaceless %} {% if person.countryOfBirth is not null %} @@ -90,13 +90,13 @@ This view should receive those arguments:
-
+

{{ 'Administrative information'|trans|upper }}

-
{{ 'Nationality'|trans }} :
+
{{ 'Nationality'|trans }} :
{% if person.nationality is not null %} {{ person.nationality.name|localize_translatable_string }} @@ -106,7 +106,7 @@ This view should receive those arguments:
-
{{'Spoken languages'|trans}} :
+
{{'Spoken languages'|trans}} :
{% if person.spokenLanguages|length == 0 %} {{ 'Unknown spoken languages'|trans }} @@ -118,7 +118,7 @@ This view should receive those arguments:
-
{{'Marital status'|trans}} :
+
{{'Marital status'|trans}} :
{% if person.maritalStatus is not null %} {{ person.maritalStatus.name|localize_translatable_string }} @@ -138,11 +138,11 @@ This view should receive those arguments:

 {{ 'Contact information'|trans|upper }}

-
{{ 'Email'|trans }} :
+
{{ 'Email'|trans }} :
{{ person.email}} 
-
{{ 'Phonenumber'|trans }} :
+
{{ 'Phonenumber'|trans }} :
{{ person.phonenumber}} 
@@ -155,7 +155,7 @@ This view should receive those arguments:
{% if cFGroup %} -
+
{{ chill_custom_fields_group_widget(person.cFData, cFGroup) }} diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index 1dd448a90..871fb0faa 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -34,12 +34,12 @@ {% block top_banner %}
-
+
- {{ 'Last name'|trans|upper }} : {{ person.lastName|upper }} + {{ 'Last name'|trans|upper }} : {{ person.lastName|upper }}
- {{ 'First name'|trans|upper}} : {{ person.firstName|upper }} + {{ 'First name'|trans|upper}} : {{ person.firstName|upper }}
-
+
- {{ 'Birthdate'|trans|upper }} : + {{ 'Birthdate'|trans|upper }} : {% if person.birthdate == null %} {{ 'Unknown date of birth'|trans }}, {{ ('person.gender.' ~ person.gender)|trans }} @@ -72,7 +72,7 @@ {% endif %}
- {{ 'Nationality'|trans|upper}} : + {{ 'Nationality'|trans|upper}} : {% if person.nationality is not null %} {{ person.nationality.name|localize_translatable_string }} {% else %} @@ -80,7 +80,7 @@ {% endif %}
- {{ 'Spoken languages'|trans|upper}} : + {{ 'Spoken languages'|trans|upper}} : {% if person.spokenLanguages|length == 0 %} {{ 'Unknown spoken languages'|trans }} {% else %} @@ -105,7 +105,4 @@ 'args' : {'person_id': person.id }, 'activeRouteKey': activeRouteKey }) }} -{% endblock %} - -{% block layout_content %} {% endblock %} \ No newline at end of file