From: Raphaƫl Gertz Date: Wed, 7 Jul 2021 15:19:28 +0000 (+0200) Subject: Add user edit forms X-Git-Tag: 0.2.4~38 X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/commitdiff_plain/02cdcdba9168e9427d34357be90d862aee265e84 Add user edit forms --- diff --git a/Resources/views/form/_user.html.twig b/Resources/views/form/_user.html.twig new file mode 100644 index 0000000..3c44d02 --- /dev/null +++ b/Resources/views/form/_user.html.twig @@ -0,0 +1,25 @@ +
+

{% trans %}Modify{% endtrans %}

+ {{ form_start(forms.user) }} +
+ {% if forms.user.mail is defined %} + {{ form_row(forms.user.mail) }} + {% endif %} + + {{ form_row(forms.user.civility) }} + + {{ form_row(forms.user.forename) }} + + {{ form_row(forms.user.surname) }} + + {{ form_row(forms.user.pseudonym) }} + + {{ form_row(forms.user.phone) }} + + {{ form_row(forms.user.submit) }} +
+ + {# render csrf token etc .#} +
{{ form_rest(forms.user) }}
+ {{ form_end(forms.user) }} +
diff --git a/Resources/views/user/edit.html.twig b/Resources/views/user/edit.html.twig new file mode 100644 index 0000000..4ddcbc7 --- /dev/null +++ b/Resources/views/user/edit.html.twig @@ -0,0 +1,28 @@ +{% extends '@RapsysAir/body.html.twig' %} +{% block content %} +
+

{{ section }}

+ {{ form_start(form) }} +
+ {% if form.mail is defined %} + {{ form_row(form.mail) }} + {% endif %} + + {{ form_row(form.civility) }} + + {{ form_row(form.forename) }} + + {{ form_row(form.surname) }} + + {{ form_row(form.pseudonym) }} + + {{ form_row(form.phone) }} + + {{ form_row(form.submit) }} +
+ + {# render csrf token etc .#} + + {{ form_end(form) }} +
+{% endblock %}