<% var isStock = stock[editingComponent]; %> Name:   

Parent:   


<% if(!isStock){ %> <% if(thisComponent.children.length == 0){ %>No Children<% }else{ %>Children:<% }%>   


<% var treeLevel = 0; %> <% var correctBranch = false; %> <% _.each(tree, function(level, id){ %> <% if(correctBranch && level <= tree[editingComponent]) correctBranch = false; %> <% if(id == editingComponent) correctBranch = true; %> <% if (!correctBranch || tree[editingComponent] >= level) return; %> <% var component = components[id] || stock[id]; %> <% treeLevel++; %>
style="background-color:#ddd"<% } %> >

<% }); %>
Motion:
<% if (!thisComponent.isStatic){ %> Vector (xyz):      
<% } %>
<% } %> Save <% if(isStock){ %>Stock<% }else{ %>Component<% } %>
Delete Cancel / Exit