From 0ba9cb891906342d6d95fc54ed91dbec849da13e Mon Sep 17 00:00:00 2001 From: jona Date: Fri, 20 Dec 2024 04:04:57 +0100 Subject: [PATCH] added button to edit existing part in provider list --- .../info_providers/search/part_search.html.twig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/templates/info_providers/search/part_search.html.twig b/templates/info_providers/search/part_search.html.twig index 5e090c66..14880d7a 100644 --- a/templates/info_providers/search/part_search.html.twig +++ b/templates/info_providers/search/part_search.html.twig @@ -53,6 +53,7 @@ {% trans %}info_providers.table.provider.label{% endtrans %} + @@ -74,6 +75,9 @@
{{ dto.mpn }} {% endif %} + {% if result["localPart"] is not null %} + + {% endif %} {{ dto.description }} @@ -101,6 +105,17 @@
{{ dto.provider_id }} + + {# 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 %}