From 8392e2e6bd40100eeb641b34a3fd3044e61fb2a1 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 25 Jan 2022 16:09:11 +0100 Subject: [PATCH] reorganize templates to fix edit form --- .../views/PersonResource/create.html.twig | 62 +----------------- .../views/PersonResource/edit.html.twig | 16 +++-- .../views/PersonResource/form.html.twig | 63 +++++++++++++++++++ .../views/PersonResource/list.html.twig | 2 +- 4 files changed, 76 insertions(+), 67 deletions(-) create mode 100644 src/Bundle/ChillPersonBundle/Resources/views/PersonResource/form.html.twig diff --git a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/create.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/create.html.twig index 06c7dd541..6e05f2d6d 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/create.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/PersonResource/create.html.twig @@ -1,66 +1,6 @@
- {{ form_start(form, {'attr' : {'id' : 'create-form'}}) }} - - {{ form_row(form.kind) }} - -
-
-
- Associer un -
-
-
- - -
-
- - -
-
- - -
-
-
-
-
-
- -
- {{ form_row(form.person) }} -
-
- {{ form_row(form.thirdparty) }} -
-
- {{ form_row(form.freetext) }} -
- - {{ form_row(form.comment) }} - - {% if action is defined %} -
    -
  • - -
  • -
- {% else %} -
    -
  • - -
  • -
- {% endif %} - - {{ form_end(form) }} + {% include "@ChillPerson/PersonResource/form.html.twig" %}
- {% if resource.kind %} + {% if resource.comment.comment is not null %}