Re-organize form layout for person creation, remove addressForm.

This commit is contained in:
2026-01-06 09:54:52 +01:00
parent 47b285b584
commit ec5ca626a4
2 changed files with 1 additions and 10 deletions

View File

@@ -77,12 +77,6 @@ final class CreationPersonType extends AbstractType
->add('email', EmailType::class, [
'required' => false,
])
->add('addressForm', CheckboxType::class, [
'label' => 'Create a household and add an address',
'required' => false,
'mapped' => false,
'help' => 'A new household will be created. The person will be member of this household.',
])
->add('address', PickAddressType::class, [
'required' => false,
'mapped' => false,

View File

@@ -105,11 +105,8 @@
{{ form_row(form.center) }}
{% endif %}
<div id=addressForm>
{{ form_row(form.addressForm) }}
</div>
<div id=address>
{{ form_row(form.address) }}
{{ form_row(form.address, {'label' : 'Address'|trans }) }}
</div>
<ul class="record_actions sticky-form-buttons">