Display help text and align address vue component to the right

This commit is contained in:
2026-01-06 14:26:58 +01:00
parent eee0593700
commit d398fad42c
3 changed files with 14 additions and 3 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -105,8 +105,14 @@
{{ form_row(form.center) }}
{% endif %}
<div id=address>
{{ form_row(form.address) }}
<div id="address" class="row mb-1" style="display:flex;" title="{{ 'A new household will be created. The person will be member of this household.'|trans }}">
{{ form_label(form.address, 'Address'|trans) }}
<div class="col-sm-8">
{{ form_widget(form.address) }}
<div class="form-text text-muted">
{{ 'A new household will be created. The person will be member of this household.'|trans }}
</div>
</div>
</div>
<ul class="record_actions sticky-form-buttons">