From 5cf17801e8e6b4003cf2407277ea21335c780d35 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 2 Jun 2017 13:02:56 +0200 Subject: [PATCH] Display all tabs on model detail page --- app/Resources/views/model/detail.html.twig | 60 ++++++++++------------ 1 file changed, 26 insertions(+), 34 deletions(-) diff --git a/app/Resources/views/model/detail.html.twig b/app/Resources/views/model/detail.html.twig index 9712b6b..0806048 100644 --- a/app/Resources/views/model/detail.html.twig +++ b/app/Resources/views/model/detail.html.twig @@ -20,7 +20,7 @@ - + @@ -73,43 +73,35 @@
- {% if subparts|length %} -
-
- {% for subpart in subparts %} - {{ blocks.model(subpart['model'], subpart['quantity']) }} - {% endfor %} -
+ +
+
+ {% for subpart in subparts %} + {{ blocks.model(subpart['model'], subpart['quantity']) }} + {% endfor %}
- {% endif %} - {% if related|length %} -
-
- {% for model in related %} - {{ blocks.model(model) }} - {% endfor %} -
+
+ +
+
+ {% for model in related %} + {{ blocks.model(model) }} + {% endfor %}
- {% endif %} - {% if model.parents|length %} -
-
- {% for subpart in model.parents %} - {{ blocks.model(subpart.parent) }} - {% endfor %} -
+
+ +
+
+ {% for subpart in model.parents %} + {{ blocks.model(subpart.parent) }} + {% endfor %}
- {% endif %} +
+
{% endblock %}
{{ 'model.id' | trans }}

{{ model.id }}

{{ model.id }}

{{ 'model.name' | trans }}