From 6dd51be9cfab43c320f1c2104b494b686b4c6a90 Mon Sep 17 00:00:00 2001 From: Aymeric SERRA Date: Fri, 10 Feb 2023 18:07:51 +0100 Subject: [PATCH] Modification style page pour modifier un utilisateur --- templates/user/_delete_form.html.twig | 2 +- templates/user/_form.html.twig | 20 ++++++++++++++++++-- templates/user/edit.html.twig | 17 +++++++++++++---- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/templates/user/_delete_form.html.twig b/templates/user/_delete_form.html.twig index 525de68..c1f0617 100644 --- a/templates/user/_delete_form.html.twig +++ b/templates/user/_delete_form.html.twig @@ -1,4 +1,4 @@
- +
diff --git a/templates/user/_form.html.twig b/templates/user/_form.html.twig index bf20b98..2068256 100644 --- a/templates/user/_form.html.twig +++ b/templates/user/_form.html.twig @@ -1,4 +1,20 @@ {{ form_start(form) }} - {{ form_widget(form) }} - + {{ form_row(form.email) }} +
+
+ {{ form_row(form.nom) }} +
+
+ {{ form_row(form.prenom) }} +
+
+ +{% if form.plainPassword is defined %} + {{ form_row(form.plainPassword) }} +{% endif %} +{{ form_row(form.roles) }} + +
+ +
{{ form_end(form) }} diff --git a/templates/user/edit.html.twig b/templates/user/edit.html.twig index 141d94a..5453edb 100644 --- a/templates/user/edit.html.twig +++ b/templates/user/edit.html.twig @@ -3,11 +3,20 @@ {% block title %}Edit User{% endblock %} {% block body %} -

Edit User

+
+
+

Modifier l'utilisateur

+
- {{ include('user/_form.html.twig', {'button_label': 'Update'}) }} +
+ {{ include('user/_form.html.twig', {'button_label': 'Mettre à jour'}) }} +
- back to list + +
{% endblock %}