From f41f395c5507996a97f5f0dba152eed8da08c335 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 7 Jul 2021 17:19:28 +0200 Subject: [PATCH] Add user edit forms --- Resources/views/form/_user.html.twig | 25 +++++++++++++++++++++++++ Resources/views/user/edit.html.twig | 28 ++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 Resources/views/form/_user.html.twig create mode 100644 Resources/views/user/edit.html.twig 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 %} -- 2.41.1