From 696760659f5338411800768abdb29ffd01afa428 Mon Sep 17 00:00:00 2001 From: lubiana Date: Fri, 7 Feb 2025 19:34:01 +0100 Subject: [PATCH] add index to loop --- templates/food_order/show.html.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/food_order/show.html.twig b/templates/food_order/show.html.twig index 1c2ba47..a7ace15 100644 --- a/templates/food_order/show.html.twig +++ b/templates/food_order/show.html.twig @@ -40,6 +40,7 @@ + @@ -49,6 +50,7 @@ {% for item in food_order.orderItemsSortedByName %} +
Index username name extras
{{ loop.index }} {{ item.createdBy }} {{ item.name }} {{ item.extras }}