AssemblerSetupMenuView.html 2.31 KB
Newer Older
Amanda Ghassaei's avatar
Amanda Ghassaei committed
1
2
3
4
5
Parent/Child Tree:<br/><br/>
<% var treeLevel = 0; %>
<% _.each(tree, function(level, id){ %>
    <% var component = components[id] || stock[id]; %>
    <% treeLevel++; %>
Amanda Ghassaei's avatar
Amanda Ghassaei committed
6
7
8
9
    <div class="alternatingColorList<% if (treeLevel%2 == 0){ %> evenListItem <% } %>">
        <label style="padding-left:<%= level*10 + 20 %>px"><%= component.name %>
        <a data-id="<%= id %>" class="editMachineComponent pull-right" href="#">Edit</a></label>
    </div><br/>
10
<% }); %><br/>
Amanda Ghassaei's avatar
Amanda Ghassaei committed
11
12
<a href="#" id="newMachineComponent" class=" btn halfWidth btn-lg btn-default">+ Component</a>
<a href="#" id="addStock" class=" btn halfWidth btn-lg btn-default pull-right">+ Stock</a><br/><br/>
13
Offset (xyz):&nbsp;&nbsp;
Amanda Ghassaei's avatar
eod    
Amanda Ghassaei committed
14
15
16
    <input data-property="translation" data-key="x" value="<%= translation.x %>" placeholder="X" class="form-control floatInput assembler" type="text">&nbsp;
    <input data-property="translation" data-key="y" value="<%= translation.y %>" placeholder="Y" class="form-control floatInput assembler" type="text">&nbsp;
    <input data-property="translation" data-key="z" value="<%= translation.z %>" placeholder="Z" class="form-control floatInput assembler" type="text"><br/><br/>
17
Rotation (xyz):&nbsp;&nbsp;
Amanda Ghassaei's avatar
eod    
Amanda Ghassaei committed
18
19
20
    <input data-property="rotation" data-key="x" value="<%= rotation.x %>" placeholder="X" class="form-control floatInput assembler" type="text">&nbsp;
    <input data-property="rotation" data-key="y" value="<%= rotation.y %>" placeholder="Y" class="form-control floatInput assembler" type="text">&nbsp;
    <input data-property="rotation" data-key="z" value="<%= rotation.z %>" placeholder="Z" class="form-control floatInput assembler" type="text"><br/><br/>
Amanda Ghassaei's avatar
Amanda Ghassaei committed
21

Amanda Ghassaei's avatar
eod    
Amanda Ghassaei committed
22
Scale: &nbsp;&nbsp;<input data-property="scale" value="<%= scale %>" placeholder="Scale" class="form-control floatInput assembler" type="text"><br/><br/>
Amanda Ghassaei's avatar
Amanda Ghassaei committed
23
Edit Code:<br/><br/>
Amanda Ghassaei's avatar
Amanda Ghassaei committed
24
25
26
27
28
29
30
<% var treeLevel = 0;
_.each(customFns, function(description, key){ %>
    <% treeLevel++; %>
    <div class="alternatingColorList<% if (treeLevel%2 == 0){ %> evenListItem <% } %>">
        <label><%= description %>  <a class="editMachineCode pull-right" data-name="<%= key %>" href="#">Edit</a></label>
    </div><br/>
<% }); %><br/>
Amanda Ghassaei's avatar
Amanda Ghassaei committed
31
<!--Pick up stock <a class="editMachineCode" data-name="customHeader" href="#">Edit</a><br/>-->
Amanda Ghassaei's avatar
Amanda Ghassaei committed
32
<a href="#" id="saveMachineConfig" class=" btn btn-block btn-lg btn-success">Save Machine Config</a><br/>