From 7b391d3212b4bcba47f7779dd246d8aaed603d0d Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Tue, 1 Sep 2015 16:43:35 +0200 Subject: [PATCH] Person review form with padding and color for th --- .../views/Person/create_review.html.twig | 112 +++++++++--------- 1 file changed, 57 insertions(+), 55 deletions(-) diff --git a/Resources/views/Person/create_review.html.twig b/Resources/views/Person/create_review.html.twig index af9e2494f..3b1e6063b 100644 --- a/Resources/views/Person/create_review.html.twig +++ b/Resources/views/Person/create_review.html.twig @@ -19,63 +19,65 @@ {% block title %}{{ 'Alreay existing person'|trans }}{% endblock title %} {% block content %} -
- {% if alternatePersons is not empty %} - - - - - - - - - - {% for person in alternatePersons %} - - - - - - {% endfor %} - - -
{{ 'Name'|trans }}{{ 'Date of birth'|trans }}{{ 'Nationality'|trans }}
- - {{ person }}{% spaceless %}{% if person.isOpen == false %}{% endif %} -{% endspaceless %} - - {{ person.birthdate|localizeddate('long', 'none', app.request.locale) }}{% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %} -
- {% endif %} +
+
+ {% if alternatePersons is not empty %} + + + + + + + + + + {% for person in alternatePersons %} + + + + + + {% endfor %} + +
{{ 'Name'|trans }}{{ 'Date of birth'|trans }}{{ 'Nationality'|trans }}
+ + {{ person }}{% spaceless %} + {% if person.isOpen == false %} + + {% endif %} + {% endspaceless %} + + {{ person.birthdate|localizeddate('long', 'none', app.request.locale) }} + {% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %} +
+ {% endif %} +
+ {{ form_start(form) }} +

{{ 'You will create this person'|trans }}

+ +
+
{{ 'First name'|trans }}
+
{{ firstName }}
+ +
{{ 'Last name'|trans }}
+
{{ lastName }}
+ +
{{ 'Date of birth'|trans }}
+
{{ birthdate|localizeddate('long', 'none', app.request.locale)|default( 'Unknown date of birth'|trans ) }}
+ +
{{ 'Gender'|trans }}
+
{{ gender|trans }}
+ +
{{ 'Creation date'|trans }}
+
{{ creation_date|localizeddate('long', 'none', app.request.locale) }}
+
-
-{{ form_start(form) }} -

{{ 'You will create this person'|trans }}

- -
-
{{ 'First name'|trans }}
-
{{ firstName }}
- -
{{ 'Last name'|trans }}
-
{{ lastName }}
- -
{{ 'Date of birth'|trans }}
-
{{ birthdate|localizeddate('long', 'none', app.request.locale)|default( 'Unknown date of birth'|trans ) }}
- -
{{ 'Gender'|trans }}
-
{{ gender|trans }}
- -
{{ 'Creation date'|trans }}
-
{{ creation_date|localizeddate('long', 'none', app.request.locale) }}
-
- -{{ form_rest(form) }} - - - -{{ form_end(form) }} + {{ form_rest(form) }} + + + {{ form_end(form) }} +
-
{% endblock content %} \ No newline at end of file