From e60f0f05715ef8dae8db11fecc95f2b930719594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 31 Dec 2022 14:45:16 +0100 Subject: [PATCH] Added attachments and parameters tab to Project info page --- templates/Projects/info/info.html.twig | 32 ++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/templates/Projects/info/info.html.twig b/templates/Projects/info/info.html.twig index c167a274..f93c1d52 100644 --- a/templates/Projects/info/info.html.twig +++ b/templates/Projects/info/info.html.twig @@ -57,10 +57,26 @@ {{ project.bomEntries | length }} - + {% if project.attachments is not empty %} + + {% endif %} + {% if project.parameters is not empty %} + + {% endif %}
@@ -76,7 +92,13 @@ {% include "Projects/info/_bom.html.twig" %}
- Attachments + {% include "Parts/info/_attachments_info.html.twig" with {"part": project} %} +
+
+ {% for name, parameters in project.groupedParameters %} + {% if name is not empty %}
{{ name }}
{% endif %} + {{ helper.parameters_table(project.parameters) }} + {% endfor %}