From a66d71b8d3b708b2870ae96dfe02dba09a378192 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Thu, 19 Jul 2018 18:03:31 +0200 Subject: [PATCH] list products when editing a category --- .../views/productcategory/edit.html.twig | 48 +++++++++++++------ 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/app/Resources/views/productcategory/edit.html.twig b/app/Resources/views/productcategory/edit.html.twig index 6c972876..050c31c2 100755 --- a/app/Resources/views/productcategory/edit.html.twig +++ b/app/Resources/views/productcategory/edit.html.twig @@ -3,19 +3,39 @@ {% block body %}

Productcategory edit

- {{ form_start(edit_form) }} - {{ form_widget(edit_form) }} - - {{ form_end(edit_form) }} +
+
+ {{ form_start(edit_form) }} + {{ form_widget(edit_form) }} + + {{ form_end(edit_form) }} +
+
    +
  • + Retour à la liste +
  • +
  • + {{ form_start(delete_form) }} + + {{ form_end(delete_form) }} +
  • +
+
+
+
+ +

{{ productCategory.products.length }}Produits associés

+
+ {% for p in productCategory.products %} + + {{ p.name }} + + {% endfor %} +
+
+
+ + - {% endblock %}