diff --git a/.changes/unreleased/UX-20260106-142813.yaml b/.changes/unreleased/UX-20260106-142813.yaml new file mode 100644 index 000000000..fdf00c2a9 --- /dev/null +++ b/.changes/unreleased/UX-20260106-142813.yaml @@ -0,0 +1,6 @@ +kind: UX +body: Improve the ux of the address field in the person creation form +time: 2026-01-06T14:28:13.033420033+01:00 +custom: + Issue: "487" + SchemaChange: No schema change diff --git a/src/Bundle/ChillPersonBundle/Form/CreationPersonType.php b/src/Bundle/ChillPersonBundle/Form/CreationPersonType.php index 0740d215f..c7679db83 100644 --- a/src/Bundle/ChillPersonBundle/Form/CreationPersonType.php +++ b/src/Bundle/ChillPersonBundle/Form/CreationPersonType.php @@ -27,7 +27,6 @@ use libphonenumber\PhoneNumberType; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\Form\AbstractType; -use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig index 1250fa387..01efd180a 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/create.html.twig @@ -105,8 +105,14 @@ {{ form_row(form.center) }} {% endif %} -
- {{ form_row(form.address) }} +
+ {{ form_label(form.address, 'Address'|trans) }} +
+ {{ form_widget(form.address) }} +
+ {{ 'A new household will be created. The person will be member of this household.'|trans }} +
+