diff --git a/Controller/PersonController.php b/Controller/PersonController.php index 48b763c1c..5bb2b4802 100644 --- a/Controller/PersonController.php +++ b/Controller/PersonController.php @@ -316,7 +316,7 @@ class PersonController extends Controller { $em->flush(); return $this->redirect($this->generateUrl('chill_person_view', - array('id' => $person->getId()))); + array('person_id' => $person->getId()))); } else { $r = new Response('this should not happen if you reviewed your submission'); $r->setStatusCode(400); diff --git a/Form/PersonType.php b/Form/PersonType.php index 3860ce811..205fd668b 100644 --- a/Form/PersonType.php +++ b/Form/PersonType.php @@ -25,22 +25,15 @@ class PersonType extends AbstractType ->add('genre', new GenderType(), array( 'required' => false )) - ->add('civil_union', new CivilType(), array( - 'required' => false - )) - ->add('nbOfChild', 'integer', array('required' => false)) - ->add('belgian_national_number', new BelgianNationalNumberType(), - 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' + 'class' => 'Chill\MainBundle\Entity\Country' )) ->add('nationality', 'entity', array( 'required' => false, - 'class' => 'CL\Chill\MainBundle\Entity\Country' + 'class' => 'Chill\MainBundle\Entity\Country' )) ; } @@ -60,6 +53,6 @@ class PersonType extends AbstractType */ public function getName() { - return 'cl_chill_personbundle_person'; + return 'chill_personbundle_person'; } } diff --git a/Resources/config/validation.yml b/Resources/config/validation.yml index e4ff22459..1bfc79554 100644 --- a/Resources/config/validation.yml +++ b/Resources/config/validation.yml @@ -1,10 +1,5 @@ Chill\PersonBundle\Entity\Person: properties: - belgian_national_number: - - NotBlank: - groups: [general] - - CL\BelgianNationalNumberBundle\Validator\Constraint\BelgianNationalNumber: - groups: [general] name: - NotBlank: groups: [general, creation] @@ -28,14 +23,6 @@ Chill\PersonBundle\Entity\Person: - Date: message: validation.Person.constraint.dateOfBirth.not_valid groups: [general, creation] - nbOfChild: - - Range: - min: 0 - max: 20 - minMessage: validation.Person.constraint.nbOfChild_min - maxMessage: validation.Person.constraint.nbOfChild_max - invalidMessage: validation.Person.constraint.nbOfChild_invalid - groups: [general] history: - Valid: traverse: true diff --git a/Resources/views/Person/create.html.twig b/Resources/views/Person/create.html.twig index 8544c2e36..7a454b5bf 100644 --- a/Resources/views/Person/create.html.twig +++ b/Resources/views/Person/create.html.twig @@ -1,4 +1,4 @@ -{% extends "CLChillMainBundle::layout.html.twig" %} +{% extends "ChillMainBundle::layout.html.twig" %} {% block title %}{{ 'views.Person.creation.title'|trans }}{% endblock title %} @@ -12,8 +12,6 @@ {% endblock %} - -{% form_theme form 'CLChillMainBundle:Form:fields.html.twig' %} {% block content %} diff --git a/Resources/views/Person/create_review.html.twig b/Resources/views/Person/create_review.html.twig index 252f76ae3..bb35f0ff6 100644 --- a/Resources/views/Person/create_review.html.twig +++ b/Resources/views/Person/create_review.html.twig @@ -1,4 +1,4 @@ -{% extends "CLChillMainBundle::layout.html.twig" %} +{% extends "ChillMainBundle::layout.html.twig" %} {% block title %}{{ 'views.Person.review.title'|trans }}{% endblock title %} @@ -13,7 +13,6 @@ {% endblock %} -{% form_theme form 'CLChillMainBundle:Form:fields.html.twig' %} {% block content %} @@ -31,7 +30,7 @@ {% for person in alternatePersons %}