From: Raphaƫl Gertz Date: Sat, 28 Aug 2021 08:27:45 +0000 (+0200) Subject: Optionalize all fields X-Git-Tag: 0.2.0~17 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/8c908f2c5dfe7dcbf431b35a46ae851a067b766c?hp=21aa710d968c2239c8a4cf209a00b67db7a2355b Optionalize all fields Add slug field --- diff --git a/Resources/views/user/edit.html.twig b/Resources/views/user/edit.html.twig index 4ddcbc7..18637f9 100644 --- a/Resources/views/user/edit.html.twig +++ b/Resources/views/user/edit.html.twig @@ -8,15 +8,29 @@ {{ form_row(form.mail) }} {% endif %} - {{ form_row(form.civility) }} + {% if form.civility is defined %} + {{ form_row(form.civility) }} + {% endif %} - {{ form_row(form.forename) }} + {% if form.forename is defined %} + {{ form_row(form.forename) }} + {% endif %} - {{ form_row(form.surname) }} + {% if form.surname is defined %} + {{ form_row(form.surname) }} + {% endif %} - {{ form_row(form.pseudonym) }} + {% if form.pseudonym is defined %} + {{ form_row(form.pseudonym) }} + {% endif %} - {{ form_row(form.phone) }} + {% if form.slug is defined %} + {{ form_row(form.slug) }} + {% endif %} + + {% if form.phone is defined %} + {{ form_row(form.phone) }} + {% endif %} {{ form_row(form.submit) }}