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 #}