WIP: Implement profile validation

This commit is contained in:
Björn Fromme
2023-09-19 16:32:14 +02:00
parent dc364cf320
commit 9a95daa3db
7 changed files with 90 additions and 17 deletions
+12 -2
View File
@@ -7,7 +7,7 @@
{% for child in form.children %}
{% for error in child.vars.errors %}
<li>
{{ child.vars.label }}: {{error.message}}
{{error.message}}
</li>
{% endfor %}
{%endfor%}
@@ -42,7 +42,17 @@
{{ _self.formErrors(form.communication) }}
{{ _self.formErrors(form.bankAccount) }}
</div>
{%endif%}
{% elseif errors|length > 0 %}
<div class="max-w-screen-md mx-auto border border-red-500 rounded-md p-4 text-red-500 mb-8">
<ul>
{% for error in errors %}
<li>
{{ error.message }}
</li>
{% endfor %}
</ul>
</div>
{% endif %}
<div class="pb-8 max-w-screen-md mx-auto" {{ stimulus_target('tabs', 'tab') }}>
<h3 class="text-xl font-bold pb-2">
Persönliche Daten