feat: improved form field layout for date of birth

This commit is contained in:
Björn Fromme
2026-03-16 11:59:11 +01:00
parent 44e2d76525
commit d0c8302d21
2 changed files with 5 additions and 3 deletions
+4
View File
@@ -201,6 +201,7 @@
'year': 'Jahr'
} -%}
{%- set field_order = ['day', 'month', 'year'] -%}
{%- set attr = attr|merge({'class': (attr.class|default('') ~ ' flex items-center space-x-2')|trim}) -%}
<div {{ block('widget_container_attributes') }}>
{%- for field_name in field_order -%}
{%- set child = form[field_name] -%}
@@ -211,6 +212,9 @@
}) -%}
{{- form_widget(child, {'attr': child_attr}) -}}
{% if not loop.last %}
<span class="block flex-shrink-0">.</span>
{% endif %}
{%- endfor -%}
</div>
{%- endblock birthday_widget -%}