From a72231ab044881d26e79c6f032c2c9710200f29e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Tue, 31 Dec 2024 12:56:09 +0100 Subject: [PATCH] Introduced a new twig variable localPart to split up the result --- .../info_providers/search/part_search.html.twig | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/templates/info_providers/search/part_search.html.twig b/templates/info_providers/search/part_search.html.twig index 14880d7a..a0a701d5 100644 --- a/templates/info_providers/search/part_search.html.twig +++ b/templates/info_providers/search/part_search.html.twig @@ -59,7 +59,10 @@ {% for result in results %} {% set dto = result["dto"] %} - + {# @var App\Entity\Parts\Part localPart #} + {% set localPart = result["localPart"] %} + + @@ -109,16 +112,16 @@ {# TODO: would like to have a sort of "part exists!" text here, but don't know how to style it also it would be nice to have these two buttons closer together, but when I put them in one cell they sometimes stack#} - {% if result["localPart"] is not null %} - {# TODO: Needs translation #} {% endif %} - {% if result["localPart"] is not null %} - {# TODO: Needs translation #}