diff --git a/Form/PersonType.php b/Form/PersonType.php
index 9b655022c..a03d9c25c 100644
--- a/Form/PersonType.php
+++ b/Form/PersonType.php
@@ -31,9 +31,9 @@ class PersonType extends AbstractType
->add('nbOfChild', 'integer', array('required' => false))
->add('belgian_national_number', new BelgianNationalNumberType(),
array('required' => false))
- ->add('memo', 'text', array('required' => false))
- ->add('address', 'text', array('required' => false))
- ->add('email', 'text', array('required' => false))
+ ->add('memo', 'textarea', array('required' => false))
+ ->add('address', 'textarea', array('required' => false))
+ ->add('email', 'textarea', array('required' => false))
->add('countryOfBirth', 'entity', array(
'required' => false,
'class' => 'CL\Chill\MainBundle\Entity\Country'
diff --git a/Resources/assets/css/sass/person.scss b/Resources/assets/css/sass/person.scss
index 7f301c95e..fbec51b25 100644
--- a/Resources/assets/css/sass/person.scss
+++ b/Resources/assets/css/sass/person.scss
@@ -35,6 +35,25 @@ div#person_wrapper {
margin: 0 0 0 199px;
padding: 0 0 0.5em 0;
}
+
+ label {
+ color: green;
+ }
+
+ label:not(.radio) {
+ min-width: 190px;
+ font-weight: bold;
+ }
+
+ label.radio{
+ margin-left: 0.2em;
+ }
+
+ div.form_control {
+ .controls {
+ float: right;
+ }
+ }
}
}
diff --git a/Resources/public/css/person.css b/Resources/public/css/person.css
index 930ea6bad..23793ac50 100644
--- a/Resources/public/css/person.css
+++ b/Resources/public/css/person.css
@@ -4,3 +4,7 @@ div#person_wrapper div#person_details dl { padding: 0.5em; }
div#person_wrapper div#person_details dt { float: left; clear: left; width: 190px; text-align: right; font-weight: bold; color: green; }
div#person_wrapper div#person_details dt:after { content: " :"; }
div#person_wrapper div#person_details dd { margin: 0 0 0 199px; padding: 0 0 0.5em 0; }
+div#person_wrapper div#person_details label { color: green; }
+div#person_wrapper div#person_details label:not(.radio) { min-width: 190px; font-weight: bold; }
+div#person_wrapper div#person_details label.radio { margin-left: 0.2em; }
+div#person_wrapper div#person_details div.form_control .controls { float: right; }
diff --git a/Resources/translations/messages.fr.yml b/Resources/translations/messages.fr.yml
index 9b04e6cbc..2ed63761a 100644
--- a/Resources/translations/messages.fr.yml
+++ b/Resources/translations/messages.fr.yml
@@ -31,6 +31,8 @@ views:
layout:
born: '{0} Né le %date% | {1} Née le %date%'
without_nationality: Nationalité inconnue
+ common:
+ edit: Modifier
Person:
view:
general: Généralités
@@ -54,6 +56,10 @@ views:
name: Nom
gender: Genre
memo: Mémo
+ edit:
+ cancel: Retour
+ reset: Remise à zéro
+ submit: Envoi
list:
without_nationality: Nationalité inconnue
diff --git a/Resources/views/Form/form_control.html.twig b/Resources/views/Form/form_control.html.twig
new file mode 100644
index 000000000..b127179be
--- /dev/null
+++ b/Resources/views/Form/form_control.html.twig
@@ -0,0 +1,9 @@
+
diff --git a/Resources/views/Form/go_to_form.html.twig b/Resources/views/Form/go_to_form.html.twig
new file mode 100644
index 000000000..61d1b871a
--- /dev/null
+++ b/Resources/views/Form/go_to_form.html.twig
@@ -0,0 +1,6 @@
+
diff --git a/Resources/views/Person/edit.html.twig b/Resources/views/Person/edit.html.twig
index edcd17794..614e3cfb3 100644
--- a/Resources/views/Person/edit.html.twig
+++ b/Resources/views/Person/edit.html.twig
@@ -9,8 +9,10 @@
{% form_theme form 'CLChillMainBundle:Form:fields.html.twig' %}
{{ form_start(form) }}
-
-
+{% set include_temp = 'CLChillPersonBundle:Form:form_control.html.twig' %}
+{% set include_args = {'return_key': 'chill_person_view',
+ 'return_args' : { 'id' : person.id} } %}
+{{ include(include_temp, include_args) }}
+{{ include(include_temp, include_args) }}
+
+{{ include(include_temp, include_args) }}
+
+{{ include(include_temp, include_args) }}
+
+{{ include(include_temp, include_args) }}
+