diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonResourceController.php b/src/Bundle/ChillPersonBundle/Controller/PersonResourceController.php index 8fadf73c8..1146dbd51 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonResourceController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonResourceController.php @@ -117,6 +117,8 @@ final class PersonResourceController extends AbstractController ]); } + dump($resource); + return $this->render( 'ChillPersonBundle:PersonResource:edit.html.twig', [ diff --git a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/form.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/form.html.twig index 1074e960f..1ce3ea2ba 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/form.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/form.html.twig @@ -9,16 +9,31 @@
- - + {% if resource is defined and resource.person is not null %} + + + {% else %} + + + {% endif %}
- - + {% if resource is defined and resource.thirdparty is not null %} + + + {% else %} + + + {% endif %}
- - + {% if resource is defined and resource.freeText is not null %} + + + {% else %} + + + {% endif %}