diff --git a/app/Resources/js/ModelViewer.js b/app/Resources/js/ModelViewer.js index dcfba03..09bc7cc 100644 --- a/app/Resources/js/ModelViewer.js +++ b/app/Resources/js/ModelViewer.js @@ -14,9 +14,9 @@ ModelViewer = function() { scene = new THREE.Scene(); scene.fog = new THREE.FogExp2(0x000000, 0.001); - var grid = new THREE.GridHelper( 30, 70 ); - // grid.position.set(30/70,-0.5,30/70); - scene.add( grid ); + // var grid = new THREE.GridHelper( 30, 70 ); + // // grid.position.set(30/70,-0.5,30/70); + // scene.add( grid ); // Lights diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index dddacd9..e19c635 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -12,6 +12,12 @@ {{ knp_menu_render('AppBundle:Builder:mainMenu') }} {% block body %}{% endblock %} {% block javascripts %} + + + + + + {% endblock %} diff --git a/app/Resources/views/part/detail.html.twig b/app/Resources/views/part/detail.html.twig index dc7d024..f098faf 100644 --- a/app/Resources/views/part/detail.html.twig +++ b/app/Resources/views/part/detail.html.twig @@ -3,26 +3,84 @@ {% block body %} {{ dump(part) }} + {{ dump(rbPart) }} -
+ +
+ {% if part is not null %} +
+
+ +
+ +

alias of

+ {% if part.aliasOf is not null %} +
+ +

{{ part.aliasOf.id }}

+
+ {% endif %} + +

aliases

+ {% for alias in part.aliases %} +
+ +

{{ alias.id }}

+
+ {% endfor %} + +

subparts

+ {% for subpart in part.subparts %} +
+ +

{{ subpart.id }}

+
+ {% endfor %} + +

subpart of

+ {% for subpart in part.subpartOf %} +
+ +

{{ subpart.id }}

+
+ {% endfor %} + + {% if part.printOf is not null %} +

print of

+
+ +

{{ part.printOf.id }}

+
+ {% endif %} + + {% if part.prints is not empty %} +

prints

+ {% for print in part.prints %} +
+ +

{{ print.id }}

+
+ {% endfor %} + {% endif %} + + {% endif %} +

in sets

+ {% for inventory in inventories %} + {{ inventory.set.number }} + {% endfor %} +
{% endblock %} {% block javascripts %} {{ parent() }} - - - - - -